Skip to content

Augment .serialized trait #1112

Open
Open
@bkhouri

Description

@bkhouri

Motivation

As a software developer writing automated tests, I would like additional functionality with the .serialized trait to have more control over test behaviour and so I can group all things related to the .serialized trait together.

When applying the .serialized trait to a Suite, I would the ability to:

  • add a comment
  • reference an issue
  • conditionalize the serialization

The addition of a comment offers context as to why it was added.
The addition of a bug allows tracking the temporary test suite serialization
The condition would allow parallel execution on some platform, but not others, where it's known to have problematic issues.

Proposed solution

I would like to write something as follows

@Suite(
    .serialized(
       "Currently unable to run in parallel until referenced defect is fixed",
       .bug(id: 1),
    )
) struct {}


@Suite(
   .serialized(if: isLinux())
) struct {}


@Suite(
     .serialized("The tools under test may be corrupting it's shared state")
) struct { }

Alternatives considered

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttraitsIssues and PRs related to the trait subsystem or built-in traitstriagedThis issue has undergone initial triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions