stretchr / testify

A toolkit with common assertions and mocks that plays nicely with the standard library
MIT License
22.5k stars 1.56k forks source link

Shuffle tests inside a Suite #1613

Open marcelloh opened 2 weeks ago

marcelloh commented 2 weeks ago

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

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")