File: bin/automated-screenshot-diff

Recommend this page to a friend!
  Classes of Igor Escobar   Automated Screenshot Diff   bin/automated-screenshot-diff   Download  
File: bin/automated-screenshot-diff
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Automated Screenshot Diff
Capture and compare page screenshots
Author: By
Last change: Update of bin/automated-screenshot-diff
Date: 2 years ago
Size: 903 bytes
 

Contents

Class file image Download
#!/usr/bin/env node var program = require('commander'), Screenshots = require('../lib/screenshots'), package = require('../package.json'); program .version(package.version) function list(val) { return val.split(',').map(String); } program .command('compare') .description('command to compare screenshots') .option('-p --previous-release [previousRelease]', 'Previous release beeing compared.') .option('-c --current-release [currentRelease]', 'Current release beeing compared.') .option('-s --source [source]', 'Where are your screenshots folder?') .option('-i --ignore-not-changed [ignoreNotChanged]', 'Should I ignore not changed scenarios?') .option('-o --outputFormat [outputFormat]', 'output formats as as list, default is html e.g. html,json', list, ['html']) .action(function(opts){ new Screenshots().compare(opts); }) program.parse(process.argv);