Small improvements to JavaScript testing with run_tests.sh.

Add new -j|--casperjs option to run through the casperjs test suite. Ensure grunt is on path before attempting to run qunit tests. A more useful version of this changeset which automatically installed phantomjs, casperjs, grunt, and npm as needed and added the required tools to the tester's path (https://bitbucket.org/jmchilton/galaxy-central-fork-1/commits/0919fc9403933f88e458724b95b0d213117bbd0e) proved unpopular because of implementation details - see conversation here https://bitbucket.org/galaxy/galaxy-central/pull-request/461/remove-deprecated-test-scripts-improved/diff.
This commit is contained in:
John Chilton
2014-09-02 12:35:33 -04:00
parent 8fb1a04b8e
commit e7b0801f8d
2 changed files with 28 additions and 2 deletions
+3 -2
View File
@@ -6,8 +6,9 @@ Tests can be run in any of the following ways:
* casperjs test mytests.js --url='http://localhost:8080'
* python casperjs_runner.py
* nosetests
* sh run_functional_tests.sh test/casperjs/casperjs_runner.py
* sh run_functional_tests.sh
* sh run_tests.sh -j
* sh run_tests.sh test/casperjs/casperjs_runner.py
* sh run_tests.sh
Note: that you can enable (lots of) debugging info using cli options:
* casperjs test api-user-tests.js --url='http://localhost:8080' --verbose=true --logLevel=debug