apache / cordova-paramedic

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

Test if builds are run on correct devices #176

Open janpio opened 5 years ago

janpio commented 5 years ago

Currently we just tell Travis in the config what platforms/devices to run on, and then hope that paramedic works as designed and the tests are actually run on the correct device/platform.

This leads to problems like https://github.com/apache/cordova-paramedic/issues/163 where this is not true and we are relying on wrong information.

Maybe we can somehow write some tests that check if a run actually uses the correct device and OS version? https://github.com/apache/cordova-plugin-device could return platform and version, maybe also the model.

The wanted values are available via the paramedic config (platform, sauceDeviceName, saucePlatformVersion or target). Those could for example be used as a param when installing a plugin or written into a file that the tests compares to.