Skip to content

kromakollision/gulp-phantomcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-phantomcss-options

Run your phantomCSS tests with Gulp.
This is a fork of gulp-phantomcss by Dan Brooks. It allows passing command line options to phantomJs.

Installation

Uninstall global node installations of casperjs and phantomjs

npm install gulp-phantomcss-options -D

Usage

var gulp = require('gulp');
var phantomcss = require('gulp-phantomcss');
var settings = require('../settings/phantomcss.json'); // path to a config file

gulp.task('phantomcss', function (){
  gulp.src('./testsuite.js')
    .pipe(phantomcss({
            screenshotRoot: './phantomcss/screenshots',
            failedComparisonsRoot: './phantomcss/failures',
            comparisonResultRoot: './phantomcss/results',
            screenshots: './phantomcss/base',
            logLevel: 'error' // or: 'info', 'debug'
          },
          '--ignore-ssl-errors=true' // pass command line options
        ));
});

More info

See https://github.com/danbroooks/gulp-phantomcss

About

fork from gulp-phantomcss

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published