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

Run tests in random order #926

Closed
trentmwillis opened this issue Feb 2, 2016 · 0 comments
Closed

Run tests in random order #926

trentmwillis opened this issue Feb 2, 2016 · 0 comments

Comments

@trentmwillis
Copy link
Member

In the docs for the reorder config option, it notes that reordering failed tests can:

also lead to random errors, in case your testsuite has non-atomic tests, where the order is important. You should fix those issues, instead of disabling reordering!

So, on a similar note, I'd like to propose adding the ability to specify that tests run in a seeded-random order. I think it would be relatively straightforward to introduce this as QUnit already has the infrastructure to reorder tests. This may not be particularly useful in browser, but could be very beneficial for CI/Post-Commit tooling looking to identify leaky/dependent tests.

As a point of reference, I looked into what other test frameworks have done in regards to this and found that this feature was recently introduced in Jasmine and has been requested multiple times for Mocha.

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

No branches or pull requests

1 participant