This PHPCI plugin allow you to launch casperjs tests
-
First, install casperJS: http://casperjs.readthedocs.org/en/latest/installation.html
-
Add demorose/phpci-casperjs in your composer.json:
[...]
"require": {
[...]
"demorose/phpci-casperjs": "dev-master",
[...]
},
[...]
- Run composer install demorose/phpci-casperjs
- Copy javascript to PHPCI :
cp /path/to/phpci/vendor/demorose/phpci-casperjs/Demorose/PHPCI/Plugin/js/casperJs.js /path/to/phpci/public/assets/js/build-plugins/casperJs.js
- x_unit_file_path - Path to xunit output. /tmp/casperOutput.xml by default.
- tests_path - Path to tests.