test angular support as well

This commit is contained in:
deltreey
2015-08-25 23:43:03 -04:00
parent bbc8d5cc3e
commit 8f6dc0f2f1
4 changed files with 356 additions and 5 deletions

View File

@@ -33,11 +33,28 @@ module.exports = function (grunt) {
},
mochacli: {
options: {
reporter: 'nyan',
reporter: 'spec',
'harmony-generators': true
},
all: ['test/*.js']
},
karma: {
unit: {
options: {
files: [
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'wildstring.js',
'karma-test/**/*.js'
],
reporters: 'mocha',
frameworks: ['mocha', 'chai'],
singleRun: true,
browsers: ['PhantomJS'],
logLevel: 'ERROR'
},
}
},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
@@ -66,7 +83,10 @@ module.exports = function (grunt) {
}
});
grunt.registerTask('default', ['jshint', 'mochacli']);
grunt.loadNpmTasks('grunt-karma');
grunt.registerTask('test', ['karma', 'mochacli']);
grunt.registerTask('default', ['jshint', 'test']);
grunt.registerTask('document', ['jsdoc']);
grunt.registerTask('update', ['document', 'versioner:default']);
};