Run Stryket on a solution with multiple test projects #2815
-
Hello, In my solution i have three test projects (Unit, UI and Integration). How do i run stryker only in a unit test project? (C# net6.0 in VS 2002) I created a stryker-config.json in the solution path like this, but aways stryker runs ALL tests from all three projects. Why??
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Looks like it's tied to so called "solution context" - when you run it from the solution directory, it analyzes the whole solution. |
Beta Was this translation helpful? Give feedback.
-
Instead of filtering you can simply execute the |
Beta Was this translation helpful? Give feedback.
Looks like it's tied to so called "solution context" - when you run it from the solution directory, it analyzes the whole solution.
I've managed to filter tests by using "test-case-filter": "Category=Unit", requiring the attribute depending on the testing framework: https://github.com/Microsoft/vstest-docs/blob/main/docs/filter.md