Add a task to run the tests once with PhantomJS

The test.js task starts the development server and runs the tests in PhantomJS.  As mentioned in the readme, when running the tests continuously during development, it is more convenient to start the dev server and visit the root of the test directory in your browser.

Later we can bring in Karma to drive PhantomJS and other browsers, but this simple "run once" task is useful for the CI job.
This commit is contained in:
Tim Schaub
2014-07-05 19:34:17 -04:00
parent 297503e7c9
commit b452e04e08
6 changed files with 156 additions and 59 deletions

View File

@@ -688,8 +688,7 @@ def proj4js_zip(t):
@target('test', PROJ4JS, phony=True)
def test(t):
t.run('%(PHANTOMJS)s', 'test/mocha-phantomjs.js',
'http://localhost:3000/test/index.html')
t.run('node', 'tasks/test.js')
@target('fixme', phony=True)