1.3.2 • Published 9 years ago

plum-regression v1.3.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

plum-regression Build Status

Run visual regression test suites against plum stylesheets using CasperJS & PhantomCSS.

Getting Started

  • Install with NPM - npm install --save plum-regression

Usage

var regression = require('plum-regression');

var options = {
  stylesheets: 'path/to/stylesheets',
  tests: [ 'modules/', 'units/', 'pages/' ],
  fixtures: 'path/to/fixtures',
  results: 'path/to/save/results/to',
  failures: 'path/to/save/failures/to'
};

regression(options, function(err, response) {
  if (err) {
    return err;
  }
  return response;
});

API

regression( options )

NameTypeArgumentDescription
options.stylesheetsstring<required>the path to your plum stylesheets.
options.testsarray<required>files and/or directories containing the tests to run.
options.fixturesstring<required>the path containing the test fixtures to use.
options.resultsstring<required>the path to save the test results to.
options.failuresstring<required>the path to save the test failures to.

callback( error, response )

NameTypeArgumentDescription
errorerror<required>any errors that may have occured.
responsestring<required>success message.

Developing

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

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.