JaCoCo with microservice project architecture?

一笑奈何 提交于 2019-12-06 16:09:10

At the moment we have the same kind of problem, the jacoco agent has a maven goal called "merge". You can specify the source files and run it:

jacoco:merge

Full name:

org.jacoco:jacoco-maven-plugin:0.7.8-SNAPSHOT:merge

Description:

Mojo for merging a set of execution data files (*.exec) into a single file

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 0.6.4.
  • Binds by default to the lifecycle phase: generate-resources.
<fileSets>
  <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
    <directory>${project.build.directory}</directory>
    <includes>
      <include>*.exec</include>
    </includes>
  </fileSet>
</fileSets>

Actual link: http://www.eclemma.org/jacoco/trunk/doc/merge-mojo.html

Hope it helps :D

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!