CityOfPhiladelphia / interaction-testers

Provides a REST API to execute headless browser tests, which can then be used like uptime checks
3 stars 2 forks source link

Add instructions for running tests manually #2

Closed timwis closed 8 years ago

timwis commented 8 years ago

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?