1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 09:53:00 +01:00

Runs jasmine-node tests as part of the test task

This commit is contained in:
Kevin Dangoor 2013-05-16 13:48:29 -04:00
parent 6be669f7a5
commit 1ca94bb595
3 changed files with 11 additions and 3 deletions

View File

@ -120,6 +120,11 @@ module.exports = function (grunt) {
} }
} }
}, },
'jasmine-node': {
run: {
spec: 'src/extensibility/node/spec/'
}
},
jshint: { jshint: {
all: [ all: [
'<%= meta.grunt %>', '<%= meta.grunt %>',
@ -146,13 +151,14 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-jasmine'); grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jasmine-node');
// task: install // task: install
grunt.registerTask('install', ['write-config']); grunt.registerTask('install', ['write-config']);
// task: test // task: test
//grunt.registerTask('test', ['jshint', 'jasmine']); //grunt.registerTask('test', ['jshint', 'jasmine']);
grunt.registerTask('test', ['jshint']); grunt.registerTask('test', ['jshint', 'jasmine-node']);
// task: set-sprint // task: set-sprint
// Update sprint number in package.json and rewrite src/config.json // Update sprint number in package.json and rewrite src/config.json

View File

@ -14,6 +14,7 @@
}, },
"devDependencies": { "devDependencies": {
"grunt": "0.4.1", "grunt": "0.4.1",
"grunt-contrib-jasmine-node": "0.1.0",
"grunt-cli": "0.1.6", "grunt-cli": "0.1.6",
"phantomjs": "1.9.0-1", "phantomjs": "1.9.0-1",
"grunt-lib-phantomjs": "0.3.0", "grunt-lib-phantomjs": "0.3.0",

View File

@ -29,6 +29,7 @@
}, },
"devDependencies": { "devDependencies": {
"grunt": "0.4.1", "grunt": "0.4.1",
"grunt-contrib-jasmine-node": "0.1.0",
"grunt-cli": "0.1.6", "grunt-cli": "0.1.6",
"phantomjs": "1.9.0-1", "phantomjs": "1.9.0-1",
"grunt-lib-phantomjs": "0.3.0", "grunt-lib-phantomjs": "0.3.0",