Skip to content
Extraits de code Groupes Projets
Valider 0930603a rédigé par mattab's avatar mattab
Parcourir les fichiers

attempt to better balance number of UI tests across the two CI jobs

parent 92537e52
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -142,7 +142,7 @@ Application.prototype.loadTestModules = function () { ...@@ -142,7 +142,7 @@ Application.prototype.loadTestModules = function () {
// we apply this option only if not a specific plugin or test suite was requested. Only there for travis to // we apply this option only if not a specific plugin or test suite was requested. Only there for travis to
// split tests into multiple jobs. // split tests into multiple jobs.
var numTestsFirstHalf = Math.round(mocha.suite.suites.length / 2); var numTestsFirstHalf = Math.round(mocha.suite.suites.length / 2);
numTestsFirstHalf += 15; // run a few more test suits in first half as UiIntegrationTests contain many tests
mocha.suite.suites = mocha.suite.suites.filter(function (suite, index) { mocha.suite.suites = mocha.suite.suites.filter(function (suite, index) {
if (options['run-first-half-only'] && index < numTestsFirstHalf) { if (options['run-first-half-only'] && index < numTestsFirstHalf) {
return true; return true;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter