From 454abc51cefb0d0a805a8a97872809167659f553 Mon Sep 17 00:00:00 2001 From: Julien Gilli Date: Wed, 3 Sep 2014 12:50:19 -0700 Subject: [PATCH] Support --reporter and --reporter-output when running tests. When running any Grunt task that runs tests with Mocha, the two following command line options are now supported: - --reporter: allows to specify a reporter, default is 'spec'. - --reporter-output: allows to specify a file where Mocha's output will be stored. These two command line options make it easier to retrieve and parse test results when tests are run on a continuous integration platform like Jenkins. Fixes #4038. --- Gruntfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 4911c87987..0aff8c5767 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -171,8 +171,9 @@ var _ = require('lodash'), mochacli: { options: { ui: 'bdd', - reporter: 'spec', - timeout: '15000' + reporter: grunt.option('reporter') || 'spec', + timeout: '15000', + save: grunt.option('reporter-output') }, // #### All Unit tests