Skip to content

Ability to run specs in a particular order #1443

@boris-petrov

Description

@boris-petrov

Is your feature request related to a problem?

I run all my other tests in randomized order - integration tests and frontend tests. I would like to run my backend-specific tests in randomized order as well. This would allow me to catch issues with dependencies between tests (which of course I don't want to be there). Just recently I spent a few hours debugging an issue in my tests that appeared only when different files were run in a specific order. I would like to protect myself from that.

Describe the solution you'd like

Something like Jupiter's junit.jupiter.testclass.order.default = org.junit.jupiter.api.ClassOrderer$Random.

Describe alternatives you've considered

There is some more context about this issue in Gitter.

Additional context

No response

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