1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

ask istanbul for more reports as default

and create a simple “grunt coverage” task synonym.
This commit is contained in:
Dave Conway-Jones 2017-03-10 20:04:14 +00:00
parent 3cc4173399
commit d25dac69d2
2 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,9 @@
"asi": true, // allow missing semicolons
"curly": true, // require braces
"eqnull": true, // ignore ==null
//"eqeqeq": true, // enforce ===
"freeze": true, // don't allow override
"indent": 4, // default indent of 4
"forin": true, // require property filtering in "for in" loops
"immed": true, // require immediate functions to be wrapped in ( )
"nonbsp": true, // warn on unexpected whitespace breaking chars

View File

@ -47,7 +47,8 @@ module.exports = function(grunt) {
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd',
reporter: 'spec'
reportFormats: ['lcov'],
print: 'both'
},
coverage: { src: ['test/**/*_spec.js'] }
},
@ -482,4 +483,7 @@ module.exports = function(grunt) {
'Create distribution zip file',
['build','clean:release','copy:release','chmod:release','compress:release']);
grunt.registerTask('coverage',
'Run Istanbul code test coverage task',
['build','mocha_istanbul']);
};