Protractor Simple Screenshot Reporter
A simple screenshot reporter for Protractor.
Usage
- Install
protractor-simple-screenshot-reporter
locally:
npm install protractor-simple-screenshot-reporter --save-dev
- Use it in your
protractor.conf.js
:
var ScreenshotReporter = ; exportsconfig = ... { jasmine; } ...;
You can also pass a function to the :filename option:
jasmine;
Supported options
directory: 'tmp/screenshots' // The directory to save screenshots to filename: ':dir/:spec.png' // The filename pattern for the screenshot resetEachRun: false // If true, clears the directory each run
TODO
- Support more complex file patterns (eg browser name, timestamp, ect...)