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 looks like: pipe steps

Here is a csproj from a test project that is running successfully:

successful csproj

Here is a csproj from a test project that isnt running:

csproj that isnt running its tests

Any ideas? I have narrowed down some test classes that I know are running, but I cant tell what is different about those class' csproj versus the ones that are not running.

1

There are 1 best solutions below

2
On

Turns out the test project that was not running was created outside of other projects: my project

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