LoginSignup
7
6

More than 5 years have passed since last update.

Gradle+Jacoco+Jenkinsの構成でカバレッジが取れない

Posted at

Jenkins動かしたらカバレッジが0になる。。。。。。

良いブログ主様がいたのでそのままやってみる
参考資料

build.gradle
apply plugin: 'java'
apply plugin: 'jacoco'
repositories {
    mavenCentral()
}

dependencies {
    testCompile 'junit:junit:4.+'
}

jacoco {
    toolVersion = "0.7.5.+"
}
  • 上記のようにjacocoのversionを指定
  • JaCoCo 0.7.5では以前のバージョンとexecファイルの互換性がない
  • pluginのversionが2.0.0ならJaCoCo 0.7.5を使う

graph.png

トレターーーーー

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6