Grunt task for running jasmine-node
npm install grunt-jasmine-node-newA grunt.js task to run your jasmine feature suite using jasmine-node.
Forked from (unmaintained) https://github.com/jasmine-contrib/grunt-jasmine-node by @s9tpepper to include https://github.com/jasmine-contrib/grunt-jasmine-node/pull/46
If that repo is actively maintained again then I will shut this one down.
npm install grunt-jasmine-node-newThen add this line to your project's Gruntfile.js grunt file:
``javascript
grunt.initConfig({
jasmine_node: {
options: {
forceExit: true,
match: '.',
matchall: false,
extensions: 'js',
specNameMatcher: 'spec',
jUnit: {
report: true,
savePath : "./build/reports/jasmine/",
useDotNotation: true,
consolidate: true
}
},
all: ['spec/']
}
});
grunt.loadNpmTasks('grunt-jasmine-node-new');
grunt.registerTask('default', ['jasmine_node']);
`
default options are:
`javascript``
{
match: '.',
matchall: false,
specNameMatcher: 'spec',
helperNameMatcher: 'helpers',
extensions: 'js',
showColors: true,
includeStackTrace: true,
useHelpers: false,
teamcity: false,
coffee: false,
jUnit: {
report: false,
savePath : "./reports/",
useDotNotation: true,
consolidate: true
}
}
Help us squash them by submitting an issue that describes how you encountered it; please be as specific as possible including operating system, node, grunt, and grunt-jasmine-node versions.
see GitHub Repository.