apache / cordova-paramedic

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

Appium tests don't work with `--plugin ./` #73

Open janpio opened 5 years ago

janpio commented 5 years ago

You can use this command cordova-paramedic --platform android --plugin ./ --target 02e7f7e9215da7f8 --useTunnel to run paramedic inside a Cordova plugin directory.

Normal tests do work that way, but for the Appium ones you get this error message:

Couldn't find Appium tests, skipping...

The reason is that the searchpaths that are generated are wrong:

paramedic-appium: searchpaths: C:\Users\Jan\AppData\Local\Temp\tmp-12736Po0pqTp96m0u\plugins\appium-tests\android,C:\Users\Jan\AppData\Local\Temp\tmp-12736Po0pqTp96m0u\plugins\appium-tests\common

The paths are missing the plugin folder and point to invalid directories.

janpio commented 5 years ago

The equivalent command, one level up and with the plugin name supplied works:

cordova-paramedic --platform android --plugin cordova-plugin-camera --target 02e7f7e9215da7f8 --useTunnel

(for that step at least - fails later because of unrelated reasons)