1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 01:42:55 +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

@ -25,7 +25,7 @@ module.exports = function (grunt) {
'use strict';
var common = require("./tasks/lib/common")(grunt);
// Project configuration.
grunt.initConfig({
pkg : grunt.file.readJSON("package.json"),
@ -120,6 +120,11 @@ module.exports = function (grunt) {
}
}
},
'jasmine-node': {
run: {
spec: 'src/extensibility/node/spec/'
}
},
jshint: {
all: [
'<%= meta.grunt %>',
@ -146,13 +151,14 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jasmine-node');
// task: install
grunt.registerTask('install', ['write-config']);
// task: test
//grunt.registerTask('test', ['jshint', 'jasmine']);
grunt.registerTask('test', ['jshint']);
grunt.registerTask('test', ['jshint', 'jasmine-node']);
// task: set-sprint
// Update sprint number in package.json and rewrite src/config.json

View File

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

View File

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