1.0.3 • Published 7 years ago
@sportlabs/gulp-casperjs-environment v1.0.3
gulp-casperjs fork to include environment param
A gulp plugin for running CasperJS scripts
Install
npm install --save-dev gulp-casperjs-environmentUsages
See gulp-casper-js
## Options
It is possible to pass casperjs options via main options object.
```js
var casperJs = require('gulp-casperjs');
gulp.task('casperCmd', function () {
const options = {
logLevel: 'debug',
includes: 'node_modules/package/index.js,node_modules/pacakge2/index.js',
webSecurity: 'no',
env: 'dev'
};
gulp.src('test.js')
.pipe(casperJs(options)); //run casperjs test.js
});Options are documented in official CasperJS documentation http://docs.casperjs.org Possible values are(excludes env)
| 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> |
| env | --env | string |
LICENSE
The MIT License (MIT)