apache / cordova-paramedic

Apache Cordova - Paramedic
https://cordova.apache.org/
Apache License 2.0
36 stars 53 forks source link

execute launching app and waiting results in parallel #152

Closed knight9999 closed 5 years ago

knight9999 commented 5 years ago

This PR is basically same as the previous PR: https://github.com/apache/cordova-paramedic/pull/51#issuecomment-487122818

This PR is based on the current master branch.

Platforms affected

All platforms (tests only) Main target is Windows 10.

Motivation and Context

Fix #38 .

Without this PR, in runLocalTests following tasks are called in order.

  1. launching test application
  2. waiting application test results

However sometimes jasmine's tests in application are finished before the corodva-paramedic starts to wait the test results. I met this issue in Windows 10. (Please see #38)

Description

With this PR, the above two tasks are called in parallel. Then the cordova-paramedic can detect jasmine tests' results normally.

Testing

In my local PC (Windows 10),

npm run test-windows

(with Windows Loopback Exemption Manager as mentioned https://github.com/apache/cordova-paramedic#windows-quirks )

Checklist

knight9999 commented 5 years ago

@erisu Thanks for the suggestions. I accepted them.