heug
heug

Reputation: 1142

Some Unit Tests are not running in ADO Pipeline

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: 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 isn't running: csproj that isnt running its tests

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

Answers (1)

heug
heug

Reputation: 1142

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

Upvotes: 0

Related Questions