jzaefferer/node-testswarm — pull request #6 by Krinkle (2012-11-27 06:26:37+00:00)
Title: Updates

### Clean up output. …
* Full url for results (given path from API starts with slash,
so implemented function `swarmServer`)
* Fix spacing between lines.
* Fix space before API error output.

New (finished):
```
Submitted job 29 http://krinkle.dev/testswarm/job/29
Polling for results.............
Job 29:
node-testswarm test job
State:
Finished
Results:
* jquery.byteLimit
chrome_23: passed (31). http://krinkle.dev/testswarm/result/123
* mediawiki.Title
chrome_23: passed (40). http://krinkle.dev/testswarm/result/122
```

Before (finished):
```
Submited job 27 http://krinkle.dev/testswarm/job/27
Polling for results............................

Job 27:
node-testswarm test job
State:
Finished

Results:

- jquery.byteLimit:
chrome_23: passed (31): /testswarm/result/121

- mediawiki.Title:
chrome_23: passed (40): /testswarm/result/120
```

New (error):
```
Submitted job 30 http://krinkle.dev/testswarm/job/30
Polling for results.....
Error:
API returned error, can't continue. Response was: {"error":{"code":"invalid-input","info":"Job not found"}}
```

Before (error):
```
Submited job 28 http://krinkle.dev/testswarm/job/28
Polling for results......API returned error, can't continue. Response was: {"error":{"code":"invalid-input","info":"Job not found"}}
```

### Update test.js example. …
* Use jQuery core instead of jQuery UI so that the example is
more representative.
This way it shows how to make a loop for QUnit modules within
a test suite. Also is easier to maintain.
* TestSwarm no longer has any default browsetSet, the sample files
use "example" so use that here as well.
* Lower runMax to 2.