Skip to content

Commit 9559061

Browse files
devversionmmalerba
authored andcommitted
build: randomize execution order of tests (#5425)
* Randomizes the order of test execution inside of Jasmine / Karma.
1 parent 448db8b commit 9559061

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/karma.conf.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,15 @@ module.exports = (config) => {
8787
browserConsoleLogOptions: {
8888
terminal: true,
8989
level: 'log'
90-
}
90+
},
9191

92+
client: {
93+
jasmine: {
94+
// Always execute the tests in a random order to ensure that tests don't depend
95+
// accidentally on other tests.
96+
random: true
97+
}
98+
}
9299
});
93100

94101
if (process.env['TRAVIS']) {

0 commit comments

Comments
 (0)