Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的 SBT 构建的工作设置,但现在我正在处理一个多项目构建。目前 SBT jacoco:cover 在每个子项目中生成报告,但我希望在根级别 /target/scala-2.xx/jacoco 有一个聚合。
Jacoco 有 jacoco:merge ant 目标,您可以将其与 SBT 集成以合并来自子项目的报告。
<jacoco:merge destfile="merged.exec"> <fileset dir="dir_common_location" includes="*.exec"/> </jacoco:merge>