Skip to content

plum-css/grunt-plum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-plum Build Status

Grunt plugin to build and run regressions tests against plum stylesheets.

Getting Started

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');

Usage

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']
      }
    }
  }
})

CLI

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

Options

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>

Developing

grunt-plum is built using ES6. Run the following task to compile the src/ into tasks/.

npm run build

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2015 Jason Bellamy
Licensed under the MIT license.

About

Grunt plugin to build and run visual regression tests against plum stylesheets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published