Skip to content
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

Filter for tests that are uncategorized #5136

Open
Youssef1313 opened this issue Feb 26, 2025 · 0 comments
Open

Filter for tests that are uncategorized #5136

Youssef1313 opened this issue Feb 26, 2025 · 0 comments
Labels
Area: MTP Belongs to the Microsoft.Testing.Platform core library Needs: Triage 🔍

Comments

@Youssef1313
Copy link
Member

Discussed in #5134

Originally posted by mscottford February 25, 2025
I'd like the ability to generate a list of tests that don't have a category specified. My use case is that I'm trying to monitor the number of tests in my test suite that have not been categorized so that I can ensure the number continues to go down over time as the team adds categories to tests.

I found microsoft/vstest#2818 which concluded with a note that such a feature wouldn't be implemented in vstest, so I thought I'd bring up the idea here.

I took a peek at the source for --treenode-filter to get a sense about whether or not it would work. The only thing that isn't clear to me from reading through it is how categories would be represented for tests that haven't had a category defined. Would that be an empty string? And then I could write an expression that searches for tests with a 0 length category? Perhaps with ^$.

@Youssef1313 Youssef1313 added Area: MTP Belongs to the Microsoft.Testing.Platform core library Needs: Triage 🔍 labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: MTP Belongs to the Microsoft.Testing.Platform core library Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

1 participant