vstest-docs icon indicating copy to clipboard operation
vstest-docs copied to clipboard

What are the "vstest.console.exe" command line versions of "rerunFailedTests: true" and "rerunMaxAttempts: 3"

Open BrianMouncer opened this issue 6 years ago • 0 comments

The Azure DevOps "VSTest task" has the built in ability to rerun individual tests that fail.

I would like to this everywhere we use VSTest as the test runner but I can't use the YAML task to call VSTest (well call VSTest.consol.exe directly, so we can selectively call other runners for Android and Linux docker containers).

My problem is, I only see this option for the VSO UI and YAML task. I can’t find the “vstest.console.exe” command line switch that is the equivalent to the VSTest task parameters “rerunFailedTests: true”, and “rerunMaxAttempts: 3”.

Searching through the azure-pipelines-tasks GitHub, I don’t see where they pass that switch on or store a list of failed test to rerun. I think they may be adding it to a block in the .runsettings file they pass to VSTest.console.exe.

Can someone please tell me how to use the "rerunFailedTests" option when calling VSTest.Console.exe directly? This would be a great item to add to the Documentation Repo?

Thanks,

Brian.

BrianMouncer avatar May 24 '19 00:05 BrianMouncer