Grunt plugin to build and run regressions tests against plum stylesheets.
This plugin requires Grunt.
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 grunt-plum --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-plum');
In your project's Gruntfile, add a section named plum
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
plum: {
test: {
options: {
src: 'path/to/plum/directory',
dest: 'path/to/save/results/to',
stylesheets: ['path/to/compiled/stylesheets']
}
}
}
})
grunt plum:test
To run only a specific test(s) you can pass a comma ,
seperated list of paths to the the --tests
.
# run all the modules tests.
grunt plum:test --tests=modules
# run only the button modules tests.
grunt plum:test --tests=modules/button
Name | Type | Argument | Description |
---|---|---|---|
options.src | string |
<required> |
the src path to your plum stylesheets. |
options.dest | string |
<required> |
the path to save the test results to. |
options.stylesheets | `array | string` | <required> |
options.tests | `array | string` | <optional> |
grunt-plum is built using ES6. Run the following task to compile the src/
into tasks/
.
npm run build
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
Copyright (c) 2015 Jason Bellamy
Licensed under the MIT license.