Skip to content

Commit ed16198

Browse files
committed
Merge branch 'hotfix-coverage'
* hotfix-coverage: Fix artifact paths Enable coverage reports in CI build: Enable coverage reports
2 parents 43451fb + dc5d3bc commit ed16198

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ buildscript {
1717
dependencies {
1818
classpath 'com.android.tools.build:gradle:3.0.1'
1919
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
20+
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.11.0'
2021
}
21-
}
22+
}
23+
24+
apply plugin: 'com.vanniktech.android.junit.jacoco'

circle.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
- run:
2626
name: Run Unit Tests
2727
command: ./gradlew testCiDebugUnitTest --no-daemon
28+
- store_artifacts:
29+
path: Calendula/build/reports/
30+
destination: reports
31+
- store_test_results:
32+
path: Calendula/build/test-results
2833
# - run:
2934
# name: Launch Android Emulator
3035
# command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel on
@@ -38,8 +43,9 @@ jobs:
3843
# - run:
3944
# name: Run Integration Tests
4045
# command: ./gradlew connectedCiDebugAndroidTest --no-daemon
46+
- run:
47+
name: Generate Coverage Report
48+
command: ./gradlew jacocoTestReportCiDebug --no-daemon
4149
- store_artifacts:
42-
path: Calendula/build/reports
50+
path: Calendula/build/reports/
4351
destination: reports
44-
- store_test_results:
45-
path: Calendula/build/test-results

0 commit comments

Comments
 (0)