mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Split up tests in gruntfile
This commit is contained in:
parent
8ee5be7031
commit
a869642705
@ -25,9 +25,11 @@ module.exports = function(grunt) {
|
|||||||
timeout: 3000,
|
timeout: 3000,
|
||||||
ignoreLeaks: false,
|
ignoreLeaks: false,
|
||||||
ui: 'bdd',
|
ui: 'bdd',
|
||||||
reporter: 'tap'
|
reporter: 'spec'
|
||||||
},
|
},
|
||||||
all: { src: ['test/**/*.js'] }
|
all: { src: ['test/**/*_spec.js'] },
|
||||||
|
core: { src: ["test/_spec.js","test/red/**/*_spec.js"]},
|
||||||
|
nodes: { src: ["test/nodes/**/*_spec.js"]}
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
options: {
|
options: {
|
||||||
@ -84,7 +86,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-simple-mocha');
|
grunt.loadNpmTasks('grunt-simple-mocha');
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
|
|
||||||
grunt.registerTask('default', ['jshint:core','jshint:tests','simplemocha']);
|
grunt.registerTask('default', ['jshint:core','jshint:tests','simplemocha:core','simplemocha:nodes']);
|
||||||
grunt.registerTask('all', ['jshint:core','jshint:nodes','jshint:editor','default']);
|
grunt.registerTask('all', ['jshint:core','jshint:nodes','jshint:editor','default']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user