Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shuffle tests inside a Suite #1613

Open
marcelloh opened this issue Jun 20, 2024 · 0 comments
Open

Shuffle tests inside a Suite #1613

marcelloh opened this issue Jun 20, 2024 · 0 comments

Comments

@marcelloh
Copy link

Description

With running tests, you can use "-shuffle on" to shuffle all the tests.
It would be nice if this could be the same inside a Suite.

Proposed solution

  • running a Suite would do the same if that command line flag is set
    or:
  • to be able to pass an extra parameter to the Run() like: suite.Run(t, &mySuite{}, true)
    or:
  • to run a shuffled Run() like: suite.RunShuffled(t, &mySuite{})

Use case

I saw there was a solution earlier, that didn't get promoted into the final package.
(I would never promote an extra command line argument, since there is already one: "shuffle")

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

No branches or pull requests

1 participant