grunt-buster v0.1.0
Grunt plugin for running Buster.JS tests in Node.js or headless in PhantomJS.
Getting Started
First, you must install buster globally:
npm install -g buster
Then install the plugin via npm:
npm install grunt-buster
Finally add this line to your project's grunt.js
gruntfile at the bottom:
grunt.loadNpmTasks('grunt-buster');
Now you can run the buster task with grunt buster
.
PhantomJS
If you want to run tests for the browser environment, you also need to install PhantomJS. See this FAQ on how to install PhantomJS.
Configuration
To configure buster, add this to the grunt.initConfig object:
buster: {
test: {
config: 'path/to/my/buster.js'
},
server: {
port: 1111
}
}
This is entierly optional, and buster will use default values if none is specified.
For available options for buster test run:
buster test --help
For available options for buster server run:
buster server --help
Growl
Growl support is optional, but if you would like to use it follow the instructions on how to install it on this site.
License
http://thedersen.mit-license.org/
(Package and README format heavily borrowed from grunt-mocha)