Running Automated tests¶
To start the tests run:
This will run both jshint and nodeunit.
To test just one suite:
grunt test --testsuite products
This will only launch tests from the file suite/products.test.js.
To test just one test from the suite:
grunt test --testsuite products --test postOk
This will also run all tests that match:
grunt test --test postOk
Automated UI tests via Casperjs¶
brew install --devel casperjs
From the root of Webpay and within your Python virualenv, run the tests like this:
To hack on tests, add a file like
All JS files in that directory are run automatically.