Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

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

Open

Description

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.

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions