question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run test when add reference from from other project

See original GitHub issue

image

I have a structure as bellow

  1. Common (Class Library) project and added FastEndpoints
  2. API project and added reference from Common. when run testing on solution. dotnet test solution.sln --collect:"XPlat Code Coverage"

it’s only working when run test inside API project.

when I used FastEndpoints on only API project, it’s working

I think we should investigate, it’s important for run CI on real application

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dj-nitehawkcommented, May 31, 2022

can you make a small repro solution with just 1 sample endpoint and 1 test? zip it up and attach it here. i will have a look. this is most likely a project misconfiguration issue where it can’t find fastendpoints.dll for some reason.

0reactions
nghiepvocommented, Jun 3, 2022

@dj-nitehawk many thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Can't reference a project to run unit testing on it
Your solution file has no projects in it other than your test project. Add the project you want to test to your solution,...
Read more >
Cannot Add Reference To XUnit Test Project
Usually test projects are created as standalone libraries. You don't add references to them. You just run the tests straight out of them ......
Read more >
Shared project not listed in Add Reference for Unit Test ...
Your open channel to Microsoft engineering teams ... so it is impossible to add a reference to a Shared Project on a Unit...
Read more >
Manage references in a project - Visual Studio (Windows)
Project references. Universal Windows Platform (UWP) projects can create references to other UWP projects in the solution, or to Windows 8.1 ...
Read more >
How To Resolve Issue Of Test Project Not Running The ...
Even though there was no single error after the upgrade, the solution was cleaned and built successfully I was not able to run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found