Skip to content

Conversation

@vincentleungrsm
Copy link

@vincentleungrsm vincentleungrsm commented Nov 24, 2025

Previously needed dotnet test --filter "TestCase.FullyQualifiedName=FailingTest.When_adding_two_numbers::should_be_greater_than_ten"

Now matches MSTest filter format dotnet test --filter "FullyQualifiedName=FailingTest.When_adding_two_numbers::should_be_greater_than_ten"

This is to solve failed mspec test re-runs not actually re-running via VSTest@2 in Azure DevOps. The re-run process automatically adds tests into the filter param using the latter format.

@vincentleungrsm vincentleungrsm changed the title Changed testcase properties to use Label to match mstest filter syntax Changed testcase properties to use Label to match mstest filter format Nov 24, 2025

private readonly Dictionary<string, TestProperty> testCaseProperties = new Dictionary<string, TestProperty>(StringComparer.OrdinalIgnoreCase)
{
[TestCaseProperties.FullyQualifiedName.Id] = TestCaseProperties.FullyQualifiedName,
Copy link

@jsskeen-utah jsskeen-utah Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the Id property has previously been used for. Does this have to be changed from Id to Label or could we include both? Perhaps you could link to the source of other test runners where they do the same thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants