Adding grunt task to run node-tap tests

This commit is contained in:
Lior Shefer 2014-12-01 22:39:59 +02:00
parent cbd1384e6b
commit c537974865
2 changed files with 14 additions and 0 deletions

View File

@ -43,11 +43,24 @@ module.exports = function (grunt) {
'playground/main.browser.js': ['playground/main.js']
}
}
},
node_tap: {
default_options: {
options: {
outputType: 'tap',
outputTo: 'console'
},
files: {
'tests': ['./test/src/*.js']
}
}
}
});
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-node-tap');
grunt.registerTask('default', ['eslint', 'build_sources', 'check', 'build']);
grunt.registerTask('test', ['jasmine_node']);

View File

@ -37,6 +37,7 @@
"grunt-browserify": "^3.2.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-eslint": "^2.0.0",
"grunt-node-tap": "^0.1.61",
"tape": "^3.0.2"
}
}