Particularly useful for development. I've been trying to load environment variables inside npm scripts commands so casperjs can run but having a hard time getting exit code to read 0. At the moment the best option is
"test": "source .env && $CASPERJS_BIN test --ignore-ssl-errors=true"
and running it via npm run test --silent tests/test-name.js
Alternatively, perhaps we just require casperjs and phantomjs be installed globally and not worry about those env vars?
Particularly useful for development. I've been trying to load environment variables inside npm scripts commands so casperjs can run but having a hard time getting exit code to read 0. At the moment the best option is
and running it via
npm run test --silent tests/test-name.js
Alternatively, perhaps we just require casperjs and phantomjs be installed globally and not worry about those env vars?