This commit is contained in:
Tim Schaub
2014-07-06 15:26:04 -06:00
parent 21878ebad3
commit d0301805c7
+7 -6
View File
@@ -16,17 +16,18 @@ Install the test dependencies (from the root of the repository):
Run the tests once with PhantomJS: Run the tests once with PhantomJS:
npm test ./build.py test
(This can also be run as `./build.py test`.) (Note that for `npm` users, this can also be run as `npm test`.)
Run the tests in a browser: Run the tests in a browser:
npm start ./build.py serve
Now visit http://localhost:3000/test/ in your browser. (This can also be run (Again for `npm` users, this is `npm start`.)
as `./build.py serve`.) The tests will re-run any time one of the source or
spec files changes. Now visit http://localhost:3000/test/ in your browser. The tests will re-run
any time one of the source or spec files changes.
Tip for TDD'ers: to make PhantomJS run the test suite continuously each time Tip for TDD'ers: to make PhantomJS run the test suite continuously each time
a spec file is changed you can use nosier (http://pypi.python.org/pypi/nosier) a spec file is changed you can use nosier (http://pypi.python.org/pypi/nosier)