-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it clear that you cannot filter the list of tests that get displayed #10116
Conversation
Call out the fact that you cannot filter when listing tests.
@rfrancioso-gpsw : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
Learn Build status updates of commit 39686b0: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
@rfrancioso-gpsw : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
#label:"aq-pr-triaged" |
@Evangelink Does anyone on the team need to review this PR? It looks OK to me. |
I would rather update the |
#sign-off OK, thanks. It can be updated again later. |
@Evangelink Related to test case filtering... Would anyone on your team be able to answer this by any chance? I'm really hoping there's a way to accomplish this, but it doesn't seem like there is. If there isn't it would be nice if this functionality could be added in a future release. https://stackoverflow.com/questions/78144390/how-to-run-all-unit-tests-that-dont-have-a-trait |
Sure thing, it will depends on the test framework you are using so I'll let you have a look at this doc page https://learn.microsoft.com/dotnet/core/testing/selective-unit-tests |
Thanks for the link @Evangelink. I took a look, but all the operators that are called out there don't seem to handle the following scenario. Imagine you have two categories of tests:
For a PR build, you now want to run all Unit Tests that don't have an assigned category. These don't work: I know you can do this instead: But imagine that in addition to there being "Slow", there's also 10 other categories that need to be excluded as well. And when new categories get added in the future, you don't want to have to keep updating your filter. Is there no way to simply select all tests that haven't been assigned a category? |
Sadly it's not possible and it's a limitation of VSTest, see microsoft/vstest#2818 |
I've updated the documentation to make this clear. It would be nice if VSTest was also updated at some point in the future to actually support filtering when listing.