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:
parent
3cc4173399
commit
d25dac69d2
@ -2,6 +2,9 @@
|
|||||||
"asi": true, // allow missing semicolons
|
"asi": true, // allow missing semicolons
|
||||||
"curly": true, // require braces
|
"curly": true, // require braces
|
||||||
"eqnull": true, // ignore ==null
|
"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
|
"forin": true, // require property filtering in "for in" loops
|
||||||
"immed": true, // require immediate functions to be wrapped in ( )
|
"immed": true, // require immediate functions to be wrapped in ( )
|
||||||
"nonbsp": true, // warn on unexpected whitespace breaking chars
|
"nonbsp": true, // warn on unexpected whitespace breaking chars
|
||||||
|
@ -47,7 +47,8 @@ module.exports = function(grunt) {
|
|||||||
timeout: 3000,
|
timeout: 3000,
|
||||||
ignoreLeaks: false,
|
ignoreLeaks: false,
|
||||||
ui: 'bdd',
|
ui: 'bdd',
|
||||||
reporter: 'spec'
|
reportFormats: ['lcov'],
|
||||||
|
print: 'both'
|
||||||
},
|
},
|
||||||
coverage: { src: ['test/**/*_spec.js'] }
|
coverage: { src: ['test/**/*_spec.js'] }
|
||||||
},
|
},
|
||||||
@ -482,4 +483,7 @@ module.exports = function(grunt) {
|
|||||||
'Create distribution zip file',
|
'Create distribution zip file',
|
||||||
['build','clean:release','copy:release','chmod:release','compress:release']);
|
['build','clean:release','copy:release','chmod:release','compress:release']);
|
||||||
|
|
||||||
|
grunt.registerTask('coverage',
|
||||||
|
'Run Istanbul code test coverage task',
|
||||||
|
['build','mocha_istanbul']);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user