From 95590613ccec7c41039095faabaf6765f09b8009 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 7 Jul 2017 00:50:05 +0200 Subject: [PATCH] build: randomize execution order of tests (#5425) * Randomizes the order of test execution inside of Jasmine / Karma. --- test/karma.conf.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/karma.conf.js b/test/karma.conf.js index 5e22ca0099a..fb6dba7a5f4 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -87,8 +87,15 @@ module.exports = (config) => { browserConsoleLogOptions: { terminal: true, level: 'log' - } + }, + client: { + jasmine: { + // Always execute the tests in a random order to ensure that tests don't depend + // accidentally on other tests. + random: true + } + } }); if (process.env['TRAVIS']) {