You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run tests in Azure DevOps VSTest in pipeline all tests are ok.
But when I want to set rerun of failed tests in the same VSTest task there is info: No test matches the given testcase filter. When I checked filter details there is filter syntax of MSTest with ClassName
Preview of VSTest task input:
testFiltercriteria: 'FullyQualifiedName~Namespace.ClassName' / or 'TestCategory=CategoryName'
rerunFailedTests: true
rerunmaxAttempts: 3
rerunType: 'basedOnTestFailureCount'
rerunFailedTestCasesMaxLimit: 1
Details of first run from the pipeline:
Test filter criteria : TestCategory=CategoryName
=> And works OK
Details of rerun from the pipeline when FailedTestName failed in a first run:
vstest.console.exe /TestCaseFilter:"(ClassName=NameSpace.ClassName&Name=FailedTestName)"
=> No test matches the given testcase filter
Any ideas why?
The text was updated successfully, but these errors were encountered:
Thanks for raising this @Misieqj
I'm not 100% certain, but this could also be related to a framework filtering issue we've fixed for the upcoming NUnit 4.2 release.
There is a preview available on MyGet. Could you see if upgrading to that helps solve your issue?
I will stay in this thread with the answer because it is related to the filter after rerun tests.
Thx @stevenaw for those tips, I tried with NUnit 3.14.0 and also 4.2 alpha but still in the tests rerun a filter not changed No test matches the given testcase filter "(ClassName=...&Name=...)"
Issue description
When I run tests in Azure DevOps VSTest in pipeline all tests are ok.
But when I want to set rerun of failed tests in the same VSTest task there is info:
No test matches the given testcase filter
. When I checked filter details there is filter syntax of MSTest withClassName
Preview of VSTest task input:
Details of first run from the pipeline:
=> And works OK
Details of rerun from the pipeline when FailedTestName failed in a first run:
=> No test matches the given testcase filter
Any ideas why?
The text was updated successfully, but these errors were encountered: