New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

plum-regression

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plum-regression

Run visual regression test suites against plum stylesheets.

latest
Source
npmnpm
Version
1.3.2
Version published
Maintainers
1
Created
Source

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.

Keywords

plum

FAQs

Package last updated on 18 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts