Developer's Diary
Software development, with Terry Ebdon
12-Mar-2019 JaCoCo build times

Reducing JaCoCo impact on build times

I added the JaCoCo plugin to the build to address issue #19, "report test coverage". While this works well it is extremely slow. This is apparently due to the instrumentation and analysis (particularly the latter), even when a HTML report is not generated.

Without JaCoCo

C:\projects\Trk21>gradlew test --rerun-tasks
> Task :test
BUILD SUCCESSFUL in 55s
5 actionable tasks: 5 executed

With JaCoCo

C:\projects\Trk21>gradlew test --rerun-tasks
> Task :test
BUILD SUCCESSFUL in 2m 7s
5 actionable tasks: 5 executed

Today's progress

  • Initial commit for enhancement #4 Torpedo fire 0e471b4
  • Commit missing Gradle wrapper files. e2b6a9c
  • Remove obsolete configuration options. 4a24a2a
  • Omit valid from Coords2d.toString() c9482de

11-MAR-2019 👈 Top of page 👉 13-MAR-2019

© 2020 Terry Ebdon.

Find me coding on GitHub, networking on LinkedIn, answering questions on Stack Exchange and hanging out on twitter.