gulp-casperjs
A gulp plugin for running CasperJS scripts
Install
npm install --save-dev gulp-casperjs
Usages
var casperJs = ;gulp;
To change the command (default: test
) use parameter command
:
var casperJs = ;gulp;
Command can be array
or string
.
If command has value which cast to false
, this parameter will be ignored.
To set custom path to CasperJS use parameter binPath
:
var casperJs = ;gulp;
Default is casperjs
(global)
Options
It is possible to pass casperjs options via main options object.
var casperJs = ;gulp;
Options are documented in official CasperJS documentation http://docs.casperjs.org Possible values are
Option | Parameter Name | Possible Values |
---|---|---|
concise | --concise | |
engine | --engine | [phantomjs | slimerjs] |
failFast | --fail-fast | |
includes | --includes | <filename>,<filename> |
logLevel | --log-level | [debug \| info \| warning \| error] |
noColors | --no-colors | |
post | --post | <filename> |
pre | --pre | <filename> |
webSecurity | --web-security | no |
xunit | --xunit | <filename> |
LICENSE
The MIT License (MIT)