DEV: Fix random test ordering (#17905)
And don't reorder failed tests when providing a seed - that was making failure debugging more difficult.
This commit is contained in:
parent
01d87e78b4
commit
0be67cb513
|
@ -41,7 +41,10 @@ document.addEventListener("discourse-booted", () => {
|
|||
if (QUnit.config.seed === undefined) {
|
||||
// If we're running in browser, default to random order. Otherwise, let Ember Exam
|
||||
// handle randomization.
|
||||
QUnit.config.seed = true;
|
||||
QUnit.config.seed = Math.random().toString(36).slice(2);
|
||||
} else {
|
||||
// Don't reorder when specifying a seed
|
||||
QUnit.config.reorder = false;
|
||||
}
|
||||
|
||||
loader.loadModules();
|
||||
|
@ -53,4 +56,5 @@ document.addEventListener("discourse-booted", () => {
|
|||
setupEmberOnerrorValidation: !skipCore,
|
||||
});
|
||||
});
|
||||
|
||||
window.EmberENV.TESTS_FILE_LOADED = true;
|
||||
|
|
Loading…
Reference in New Issue