dimanche 7 août 2016

Export test results from Android Espresso unit tests through command line

The instrumented android app is installed through the following commands,

$ adb push app-dev-debug-androidTest.apk /data/local/tmp/com.bt.test

$ adb shell pm install -r "/data/local/tmp/com.bt.test"

The espresso unit tests are ran using the following command

$ adb shell am instrument -w -r -e debug false http://ift.tt/2aLYICU

The 'instrument' command only has the option 'r' and doesn't have option to export the test results to html file.

But I could find the export test results to html from Android studio. (I am using Android studio 2.2 Preview 7)

Aucun commentaire:

Enregistrer un commentaire