diff options
author | Tobrun <tobrun@mapbox.com> | 2016-01-27 11:58:30 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2016-01-28 08:09:54 +0100 |
commit | b492e2408d1ece69ea977912908ca49fe42e84b2 (patch) | |
tree | 20ce466b096624011ddff8555861d3550af042dd /platform/android/tests/docs/UNIT_TESTS.md | |
parent | fab847c128601524288d0de2e65ed24e65270027 (diff) | |
download | qtlocation-mapboxgl-b492e2408d1ece69ea977912908ca49fe42e84b2.tar.gz |
[android] #3708 - added code coverage test documentation and debug option
Diffstat (limited to 'platform/android/tests/docs/UNIT_TESTS.md')
-rw-r--r-- | platform/android/tests/docs/UNIT_TESTS.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/android/tests/docs/UNIT_TESTS.md b/platform/android/tests/docs/UNIT_TESTS.md index ef89f23ced..15850b8b12 100644 --- a/platform/android/tests/docs/UNIT_TESTS.md +++ b/platform/android/tests/docs/UNIT_TESTS.md @@ -20,6 +20,14 @@ You can also run the tests from the command line with: $ ./gradlew test --continue -p MapboxGLAndroidSDKTestApp ``` +### Code Coverage +Showing code coverage directly in the IDE. +- Switch your Build Variant to the Unit Tests artifact +- Right click a unit test and select `Run test with coverage` +- Select `Add to active suites` //this will create a run configuration +- Edit the run configuration to include/exclude packages in the `Code coverage`-tab. + + ## Running Unit tests on CI The Unit tests are executed as part of the build process on our CI and are automatically run for each new commit pushed to this repo. If a Unit tests |