Advertisement
Terrerix

BackstopJS Issue - Gulp File

Mar 13th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var gulp         = require('gulp')
  2. ,   backstop     = require('backstopjs')
  3. ;
  4.  
  5. gulp.task('css-test', function() {
  6.     // Relative paths required
  7.     var config = require(__dirname  + '/tests/backstop/config.js')('tests/backstop');
  8.  
  9.     backstop('test', { config: config, });
  10. });
  11.  
  12.  
  13. gulp.task('css-reference', function() {
  14.   // Absolute paths required
  15.   var config = require(__dirname  + '/tests/backstop/config.js')(__dirname  + '/tests/backstop');
  16.  
  17.   backstop('reference', { config: config, });
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement