Skip to content

Sequential test collection is declared but no test class joins it #548

Closed

Description

@ptr727

CreateMatrixTests/Fixture.cs:7 declares

[CollectionDefinition("Sequential Test Collection", DisableParallelization = true)]
public class SequentialCollectionDefinition;

but none of the six test classes (CommandLineTests, ComposeFileTests, DockerFileTests,
ReleasesTests, VersionForwardTests, VersionInfoTests) carries
[Collection("Sequential Test Collection")]. In xUnit v3 DisableParallelization applies only
to the classes that join the named collection, so the definition is inert and every test class
still runs in the default parallel collection.

That is dead configuration either way, but which direction to fix it in is a real decision:

  • If the suite genuinely needs sequential execution, the classes need the [Collection(...)]
    attribute, or the assembly needs
    [assembly: CollectionBehavior(DisableTestParallelization = true)].
  • If it does not (the fixture-based tests each create their own GUID-named temp directory, so
    they look parallel-safe today), the definition should be deleted rather than wired up.

Raised by CodeRabbit on #547, which only touched this file to renormalize its line endings.
Deferred out of that PR because it is pre-existing and belongs to test design rather than the
line-ending drift class.

Activity

  1. added a commit that references this issue on Aug 31, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on ptr727/ProjectTemplate#3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a conformance chore an audit re-derives live, or a wording item is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

Metadata

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