1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-08 16:36:10 +00:00

Updated Device Tests & Coverage Report (markdown)

kai-morich 2020-07-04 15:45:47 +02:00
parent e5ac7b7f40
commit 02e16ad5de

@ -53,7 +53,7 @@ Enable ``apply from: 'coverage.gradle'`` in ``usbSerialForAndroid/build.gradle``
Remove previous test results with ``gradle clean`` or *Android Studio : Menu -> Build -> Clean Project*
For each *flavor* defined in ``coverage.gradle`` execute the corresponding *create***Flavor***DebugAndroidTestCoverage* task. You can find these tasks in Android Studios Gradle window in the *usb-serial-for-android -> usbSerialForAndroid -> other* folder. You can show this window with *Android Studio : Menu -> View -> Tool Windows -> Gradle*.
For each *flavor* defined in ``coverage.gradle`` execute the corresponding *create***Flavor***DebugAndroidTestCoverageReport* task. You can find these tasks in Android Studios Gradle window in the *usb-serial-for-android -> usbSerialForAndroid -> other* folder. You can show this window with *Android Studio : Menu -> View -> Tool Windows -> Gradle*.
As tests can be flaky, it's best to first execute *DeviceTest* as this shows the test results and errors much better and on success execute the *create***Flavor***DebugAndroidTestCoverage* task.