I got it. 

In my environment, `npm run test-windows` sometimes successes. Otherwise fails.
I assume that the jasmine tests in app have finished before calling 
`self.waitForTests()` in `paramedic.js`.

My quick fix is 
```
diff --git a/lib/paramedic.js b/lib/paramedic.js
index 1c4d642..2f3d67e 100644
--- a/lib/paramedic.js
+++ b/lib/paramedic.js
@@ -330,7 +330,11 @@ ParamedicRunner.prototype.runLocalTests = function () {
         logger.normal('cordova-paramedic: running command ' + command);

         if (self.config.getPlatformId() !== util.BROWSER) {
-            return execPromise(command);
+            return exec(command, function (code, output) {
+                  if (code) {
+                      throw new Error(output);
+                  }
+            });
         }
```

In my environment,  this seems to work well.
However I have not yet checked this modification is safe in other environments.




[ Full content available at: 
https://github.com/apache/cordova-paramedic/issues/38 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to