screenshot-reporter
v1.1.331
Published
Jasmine reporter for making screenshots and html-capture on test failure. Helps debugging newly created, flaky, not stable tests.
Downloads
505
Maintainers
Keywords
Readme
Why do I need this?
Jasmine reporter for making screenshots and html-capture on test failure. Helps debugging newly created, flaky, not stable tests.
Installing
npm install --save-dev screenshot-reporter
Usage
Add environment variable with your base directory to save files and remote link to read it from there:
export SCREENSHOT_BASE_DIR="/usr/work/screenshots";
export SCREENSHOT_REMOTE_LINK="http://google.com/my-screenshots";
In your protractor conf:
var ScreenshotReporter = require('screenshot-reporter');
jasmine.getEnv().addReporter(new ScreenshotReporter());