Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make timed out runs not pass. Also put back the low timeout into test…

….js, along with a note in the readme. Release 0.2.1
  • Loading branch information...
commit 0472d141a8337b80e977e7a218d4f117f24d4986 1 parent b46b42a
@jzaefferer jzaefferer authored
View
3  .gitignore
@@ -1 +1,2 @@
-node_modules
+node_modules
+local-test.js
View
2  README.md
@@ -31,6 +31,8 @@ testswarm( {
});
```
+For local testing, make a copy of `test.js`, name it `local-test.js` (in .gitignore) and modify to match your local TestSwarm setup.
+
## Release History
* 0.2.0 Global timeout, check all uaRuns, proper URLs back to TestSwarm, some additional error handling
* 0.1.1 fix engine property in package.json
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "testswarm",
"description": "Nodejs module for interacting with TestSwarm",
- "version": "0.2.0",
+ "version": "0.2.1",
"homepage": "https://github.com/jzaefferer/node-testswarm",
"author": {
"name": "Jörn Zaefferer",
View
4 test.js
@@ -1,8 +1,8 @@
var myCode = "http://localhost/testswarm-ui-checkout/";
require( "./testswarm" )( {
- url: "http://localhost/testswarm/",
+ url: "http://localhost/testswarm",
pollInterval: 1000,
- timeout: 1000 * 60 * 10,
+ timeout: 1000 * 10,
done: function( passed ) {
process.exit( passed ? 0 : 1 );
}
View
2  testswarm.js
@@ -35,7 +35,7 @@ function logResults( config, job, state ) {
for ( ua in run.uaRuns ) {
uaRun = run.uaRuns[ ua ];
console.log( " " + ua + ": " + uaRun.runStatus + runStats( config, uaRun ) );
- if ( uaRun.runStatus === "failed" ) {
+ if ( uaRun.runStatus !== "passed" ) {
passed = false;
}
}

0 comments on commit 0472d14

Please sign in to comment.
Something went wrong with that request. Please try again.