mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user