webjerky
v0.3.0
Published
connect to sauce, fire up a static server, do some screenshot testing!
Downloads
6
Readme
webjerky
web application screenshot testing in docker.
webjerky is a small script that wires together a few webjerk plugins. it runs element-wise screenshot testing in real browsers in a docker container. you can read the single file source for a better idea!
specifically, it:
- generates snaps from webjerk-snaps,
- by default, 'jerky looks for sauce creds, but you can test against a local selenium instance by passing
conf.localSelenium
orWEBJERKY_LOCAL=true
- by default, 'jerky looks for sauce creds, but you can test against a local selenium instance by passing
- compares test snaps from reference snaps with webjerk-image-set-diff
- see ^^ docs to see how to use the comparison algorithm, approve new images, etc
- creates reports from webjerk-image-set-diff-reporter when differences detected
usage
var webjerky = require('webjerky')
var conf = { ... } // see API docs
webjerky(conf).then(...) // `snaps/` will be a dir with the result of `webjerk-snaps` within!