Skip to content
Browse files

Update README

  • Loading branch information...
1 parent 8345207 commit 70036e2d9a6004dd8d5a963e3bbd6792d72ff8f3 @MarkBennett committed Feb 11, 2011
Showing with 14 additions and 7 deletions.
  1. +14 −7 README.markdown
View
21 README.markdown
@@ -13,21 +13,28 @@ Running the tests in your browser
As most modern browsers prevent JavaScript running from the file-system to access other content on the file system the test specs cannot make use of jQuery XHR calls. To resolve this, you need to run a web server serving the contents of the widget directory.
- <code>python -m SimpleHTTPServer</code>
+ <code>ant serve</code>
The tests are being refactored to prevent the need for XHR which will eliminate this dependency.
-Open the <code>/spec/SpecRunner.html</code> file in your web browser to run the tests using the Jasmine browser test runner.
+Open the <code>/spec/SpecRunner.html</code> file in your web browser to run the tests using the Jasmine browser test runner. There's a shortcut to do this using:
+
+ <code>ant test-browser</code>
+
+Which opens the tests in Google Chrome.
Running the tests on the command-line
---------------------------------------
Using Jasmine and PhantomJS allows us to run our unit tests from the command-line. You'll need phantomjs installed on your machine before you can run this:
- <code>phantomjs spec/run_jasmine.js http://localhost:8000/spec/SpecRunner.html</code>
+ <code>ant test</code>
+
+Running the tests on Hudson
+----------------------------
+
+To run the tests on the Hudson server:
-TODO
-=====
+ <code>ant test-hudson</code>
-* Add support for junit compatable XML output from the command-line
-* Eliminate XHR dependency on local web server to run tests
+The output is stored in a junit compatable XML test file in junit-hudson.xml.

0 comments on commit 70036e2

Please sign in to comment.
Something went wrong with that request. Please try again.