Skip to content

Support test retry filteringΒ #4244

Closed as not planned
Closed as not planned
@NGloreous

Description

@NGloreous

Description

Add an extensibility point to VSTest to enable custom logic to determine if a failed test should be retried.

The OneDrive team currently uses a custom built test harness to run our tests. To deal with test flakyness we need to retry tests and we have built up custom logic to determine when it's acceptable to retry tests and how many times a test can retry. We would like to migrate to VSTest but we need this support to do it. We're open to contributing.

The extension should have the following context provided:

  • Fully qualified test name
  • The test assembly
  • The failure Exception
  • Ideally the full test context (to have access settings/parameters)

The extension should be able to control

  • If the test gets retried (also possibly be able to control when it gets retried, e.g. right away vs at the end of other tests)
  • What to do with the failed results, e.g. drop it, change the outcome.

The retry filter extension to use should be able to be specified via command line and/or run settings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions