Skip to content

ckenergy/JacocoX-example

Repository files navigation

jacocox is an Android incremental code coverage plugin

文档还是中文的好

How to use(version=1.1.0)

1、root build.gradle

    classpath 'io.github.ckenergy:jacocox-plugin:$version'

2、add file jacocoX.gradle in root dir

3、root build.gradle

subprojects {
    apply from: "$rootProject.projectDir/jacocoX.gradle"
}

4、add file jacocoreport into root dir

like:

img_1.png

5、add git compareBranch or compareTag,if them all empty, default compareBranch is master or main

jacocoX {
    //    compareBranch = "master"
    compareTag = "****"
    printLog = true
    enable = true
}

6、replace with your applicationId in jacocoreport

img_2.png

next you can run you app and testing, in Terminal input ./jacocoreport when you are finish test, then it will open a report in your browser

img_3.png

About

jacocox is an incremental code coverage plugin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published