I have tried various things, none work. Here are my attempts:
subprocess.call(['cordova-test android tests --app platforms/android/build/outputs/apk/android-debug.apk --device-name=emulator-5554 --no-compile'],
cwd = ['/Users/User/Documents/dev/engineerappcopy'], shell = True)
next
subprocess.call(['cordova-test android tests --app platforms/android/build/outputs/apk/android-debug.apk --device-name=emulator-5554 --no-compile'],
cwd = shlex.split(['/Users/User/Documents/dev/engineerappcopy'])
next
subprocess.call(['cordova-test android tests --app platforms/android/build/outputs/apk/android-debug.apk --device-name=emulator-5554 --no-compile'],
cwd = ['/Users/User/Documents/dev/engineerappcopy'])
First, argument line must be a string (with spaces, optionally) or a list of the arguments, but not the command line as sole argument.
Then, current working directory must be a string, not a list.
Try this:
subprocess.call(['cordova-test','android','tests','--app','platforms/android/build/outputs/apk/android-debug.apk','--device-name=emulator-5554','--no-compile'],
cwd = '/Users/User/Documents/dev/engineerappcopy')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With