Fixup comments and add README for test/casperjs directory.

This commit is contained in:
John Chilton
2014-09-02 11:50:43 -04:00
parent b0c378bea4
commit 8fb1a04b8e
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -0,0 +1,4 @@
This directory contains the Galaxy framework written by Carl Eberhard
for running headless browser tests using CasperJS and PhantomJS.
See notes at the top of casperjs_runner.py for more information.
+4 -4
View File
@@ -6,16 +6,16 @@ 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/test_runner
* sh run_functional_tests.sh test/casperjs/casperjs_runner.py
* sh run_functional_tests.sh
Note: that you can enable (lots of) debugging info using cli options:
* casperjs test usertests.js --url='http://localhost:8080' --verbose=true --logLevel=debug
* casperjs test api-user-tests.js --url='http://localhost:8080' --verbose=true --logLevel=debug
(see casperjs.org for more information)
Note: This seems to not work with CasperJS 1.1 (and PhantomJS 1.9) - Casper 1.0.xx and
PhantomJS 1.8 work for me (John).
Note: This works with CasperJS 1.1 and PhantomJS 1.9.2 and these libraries seem to break backward
compatbility a lot.
Note: You can pass in extra data using --data='<some JSON object>'
and it will be available in your script as spaceghost.fixtureData.