Skip to content

stopOnFail is ignored when synchronous message reporting is requested #392

@tteguayco

Description

@tteguayco

I have a project with some xunit tests which includes xunit.runner.visualstudio as a dependency (targeting version 2.5.1).

Inside that project, I added an xunit.runner.json file with the following content:

{
  "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
  "parallelizeTestCollections": false,
  "stopOnFail": true
}

When running my tests from VisualStudio 2022, the option parallelizeTestCollections seems to be working fine but stopOnFail is completely ignored; even if one test fails, all the remaining will run (even if the latter started after the failing one finished).

Am I missing something here? Happy to provide more context as necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs ReproThis issue needs a repro project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions