Skip to content

Parallel settings do not work when using AssemblyFixture #14

@ppasieka

Description

@ppasieka

In the xunit.runner.json file you can specify rules related to parallel execution.

{
  "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
  "maxParallelThreads": 4,
  "parallelizeTestCollections": true,
  "parallelizeAssembly": true
}

I compared commits with and without the IAssemblyFixture applied to my tests.
With the above configuration and when using classic IClassFixture, the maximal number of running tests is 4.

But with the AssembluFixture, the test runner executes tests without limits (approx ~120 tests at the same time)

Is there a way to control it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions