Excluding tests with filters from CLI #829
-
Is it possible to exclude some tests from running on the command line using attributes. With XUnit I can add an attribute like say |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Filter info is here: https://thomhurst.github.io/TUnit/docs/tutorial-extras/test-filters |
Beta Was this translation helpful? Give feedback.
-
Hello, will be this Category attribute shown in Test Explorer (Visual Studio)? When I enable traits in test explorer I still can't see it. I would like be able select only category which should be run. Also when writing code and just right click on method in which I am and choose Run Tests it just build project but it not run them |
Beta Was this translation helpful? Give feedback.
-
@thomhurst I'm kind of stuck on this. I have CI/CD which runs |
Beta Was this translation helpful? Give feedback.
This should work:
dotnet test -- --treenode-filter /**[Category!=Integration]