From: Jean-Baptiste Lievremont Date: Fri, 25 Jul 2014 14:48:26 +0000 (+0200) Subject: Cleanup logs for CI X-Git-Tag: 4.5-RC1~339^2~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6d2e194334d91791dc2325ce88514bac535600cc;p=sonarqube.git Cleanup logs for CI --- diff --git a/server/sonar-web/Gruntfile.coffee b/server/sonar-web/Gruntfile.coffee index e222dcb4112..cafe5616b9b 100644 --- a/server/sonar-web/Gruntfile.coffee +++ b/server/sonar-web/Gruntfile.coffee @@ -274,14 +274,11 @@ module.exports = (grunt) -> cw: options: test: true - parallel: true, - concurrency: 5 src: ['<%= pkg.sources %>js/tests/e2e/tests/component-viewer-spec.js'] single: options: test: true - parallel: true, - concurrency: 5 + verbose: true src: ['<%= pkg.sources %>js/tests/e2e/tests/<%= grunt.option("spec") %>-spec.js'] diff --git a/server/sonar-web/src/main/js/tests/e2e/lib.js b/server/sonar-web/src/main/js/tests/e2e/lib.js index 6650aa509de..8ade46d3aca 100644 --- a/server/sonar-web/src/main/js/tests/e2e/lib.js +++ b/server/sonar-web/src/main/js/tests/e2e/lib.js @@ -9,15 +9,19 @@ var BASE_URL = 'http://localhost:3000/pages/', exports.initMessages = function () { // Dump log messages casper.removeAllListeners('remote.message'); - casper.on('remote.message', function(message) { - this.echo('Log: '+ message, 'LOG'); - }); + if (casper.cli.get('verbose')) { + casper.on('remote.message', function(message) { + this.echo('Log: '+ message, 'LOG'); + }); + } // Dump uncaught errors casper.removeAllListeners('page.error'); - casper.on('page.error', function(msg) { - this.echo('Error: ' + msg, 'ERROR'); - }); + if (casper.verbose) { + casper.on('page.error', function(msg) { + this.echo('Error: ' + msg, 'ERROR'); + }); + } };