Simple Project Setup for MacBook
Visit Google’s project home for js-test-driver. The ecomware tutorial, below, is based on Google’s hello-world project, but will save you a few steps and some reading, as the project relies on content from the Getting Started guide that isn’t in the project itself by default. Plus, there are some silly gotchas in downloading the project files that we’ll spare you from. Get up and running using the steps outlined below, and then return to the project home for advanced information, configuration settings, etc.
1. Download the rebuilt hello-world project (2012-17-05): hello-world.zip.
2. Unzip it on your desktop.
3. Execute the command(s) below
$ cd ~/Desktop/hello-world $ java -jar JsTestDriver-1.3.4.b.jar --port 4224
4. Open Firefox to: http://localhost:4224
4a. Click the link: Capture This Browser
5. Execute the command(s) below
$ cd ~/Desktop/hello-world $ java -jar JsTestDriver-1.3.4.b.jar --tests all
It’s working if…
The output of the final command looks like this:
$ cd ~/Desktop/hello-world $ java -jar JsTestDriver-1.3.4.b.jar --tests all setting runnermode QUIET . Total 1 tests (Passed: 1; Fails: 0; Errors: 0) (2.00 ms) Firefox XX.0 Mac OS: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (2.00 ms)
