Reputation: 1142
I have a solution, it has 4 projects, each project has a corresponding test project in a "tests" solution.
I've noticed that sometimes a test fails locally but passes the CI build, and depending where the test is located, sometimes it does successfully fail on CI build.
Our ADO pipeline steps look like:
Here is a .csproj
from a test project that is running successfully:
Here is a .csproj
from a test project that isn't running:
Any ideas? I have narrowed down some test classes that I know are running, but I can't tell what is different about those .csproj
versus those that are not running.
Upvotes: 0
Views: 1105
Reputation: 1142
Turns out the test project that was not running was created outside of other projects:
when i manually move it in finder, and try to replace the reference paths in the csproj to reflect how the paths in the functioning test projects are laid out, the project refuses to load.
anyone know how to easily and safely refactor/move this project??
the best solution here is to create a new project, name it similarly (or name it whatever) then delete the old one once its running properly, and finally rename the new one to the old name
Upvotes: 0