Skip to content

Commit

Permalink
add grunt task for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
antirek committed Mar 16, 2015
1 parent 60af802 commit 6b2028d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
node_modules/
config.js
coverage
38 changes: 38 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,38 @@
module.exports = function(grunt) {

grunt.initConfig({
default: {

},
jasmine_node: {
coverage: {
options : {
failTask: true,
branches: 60 ,
functions: 60,
statements: 60,
lines: 60
}
},
options: {
forceExit: true,
match: '.',
matchall: false,
extensions: 'js',
specNameMatcher: 'spec',
junitreport: {
report: false,
savePath : "./build/",
useDotNotation: true,
consolidate: true
},
unit: ['./spec/'],
functional: ['./spec/']
}
}
});

grunt.loadNpmTasks('grunt-jasmine-node-istanbul');
grunt.registerTask('default', 'jasmine_node');

};
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -17,6 +17,7 @@
"yandex-speech": "^0.0.11"
},
"devDependencies": {
"grunt-jasmine-node-istanbul": "0.0.5",
"jasmine": "^2.2.1"
},
"scripts": {
Expand All @@ -32,4 +33,4 @@
"url": "https://github.com/antirek/voicer/issues"
},
"homepage": "https://github.com/antirek/voicer"
}
}

0 comments on commit 6b2028d

Please sign in to comment.