Grunt task for running jasmine-node
This plugin requires Grunt ~0.4.2
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install git://github.com/GlobalDomestic/grunt-jasmine-node.git --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-jasmine-node');
In your project's Gruntfile, add a section named jasmine_node
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
jasmine_node: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
});
Type: Boolean
Default value: false
Verbose output as the specs are run.
Type: Boolean
Default value: true
Indicates spec output should uses color to indicates passing (green) or failing (red) specs.
Type: Boolean
or String
Default value: process.env.TEAMCITY_PROJECT_NAME
or false
Converts all console output to teamcity custom test runner commands. (Normally auto detected.).
Type: Boolean
Default value: false
File run before specs to include and configure RequireJS.
Type: Object
Default value: Object
{
report: false,
savePath : './reports/',
useDotNotation: true,
consolidate: true
}
Export tests results as junitreport xml format.
Type: Boolean
Default value: true
Show the stack trace generated from a test failure.
Type: Boolean
Default value: false
Display test run summary in a growl notification (in addition to other outputs).
In this example, th
grunt.initConfig({
jasmine_node: {
options: {},
files: {
'src': ['**/*test.js'],
},
},
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)