Our current testing setup involves several steps:
- Start a jstd server from the command line.
- Visit the server in the browser that you want to test.
- Run the jstd command with "--tests all" set.
- Tear everything down.
With phantomjs, this process is streamlined. You can do everything from the command line:
$ ./test.sh
Ran 118 tests in 1.397s.
118 test(s) passed
0 test(s) failed:
PASS
Phantom creates a headless web browser using WebKit. You drive the browser using JavaScript, and can execute commands in the context of any web page. I'm excited that it's working so well for dygraphs. No we'll have no excuses for not running auto_tests!
Can you help me out in setting up PhantomJS wih eclipse.
ReplyDelete