Run Stryket on a solution with multiple test projects #2815
Answered
by
EvgeniKaidalov
CarlosEGSouza
asked this question in
Q&A
-
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.
Answered by
EvgeniKaidalov
Jan 8, 2024
Replies: 1 comment 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.
1 reply
Answer selected by
rouke-broersma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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