mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
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.
This commit is contained in:
parent
d93bf82795
commit
454abc51ce
1 changed files with 3 additions and 2 deletions
|
@ -171,8 +171,9 @@ var _ = require('lodash'),
|
||||||
mochacli: {
|
mochacli: {
|
||||||
options: {
|
options: {
|
||||||
ui: 'bdd',
|
ui: 'bdd',
|
||||||
reporter: 'spec',
|
reporter: grunt.option('reporter') || 'spec',
|
||||||
timeout: '15000'
|
timeout: '15000',
|
||||||
|
save: grunt.option('reporter-output')
|
||||||
},
|
},
|
||||||
|
|
||||||
// #### All Unit tests
|
// #### All Unit tests
|
||||||
|
|
Loading…
Reference in a new issue