css

cssdog

a small tool for performing css regression analysis on static html

Showing:

Popularity

Downloads/wk

24

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

3

Package

Dependencies

7

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

cssdog

A small cli tool for performing root-level css regression testing on static html. This tool is also programmable from within node.

The implementation leverages Resemble.js, launching Casper and PhantomJS as a child process.

File (input) selection is powered by glob.

Unlike other css regression tools, cssdog does not baseline images. cssdog instead baselines the input html, seeking to ease the pains of performing cross-system visual regression testing. New screenshots of baselined html are captured during each regression test.

$ cssdog "html/{,**/}*.html" -h
node cssdog <input glob> [options...]

Options:
  --version                 Show version number                        [boolean]
  -a, --artifactsDirectory  location where intermediary results and failures are
                            stored.            [string] [default: "./artifacts"]
  -b, --baselinesDirectory  location where from where baselines are loaded and
                            stored. Defaults to ./{{artifactsDirectory}}/
                            baselines                                   [string]
  -d, --dirty               do not clean up comparison artifacts and results
                            following a run.          [boolean] [default: false]
  -r, --rebase              create a new baseline. this will delete your current
                            baseline snapshots.       [boolean] [default: false]
  -s, --timeout             regression test timeout in seconds. Defaults to 5
                            seconds.                                [default: 5]
  -t, --tolerance           mismatch tolerance. Increasing this value will
                            decrease test coverage. Defaults to 0.01%.
                                                                 [default: 0.01]
  -v, --verbose             whether to print log messages to stdout
                                                      [boolean] [default: false]
  --no-colors               disable colorized output  [boolean] [default: false]
  -h                        Show help                                  [boolean]

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100