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.
我有十个 Maven 模块,它们是单独的 Eclipse 项目。他们都有 testNG 测试。当我尝试为此创建 emma 覆盖配置时,它只允许选择一个特定的项目。因此,要获得主要项目覆盖的全貌,我必须创建 10 个 emma 覆盖配置!配置和使用都很不方便,如何避免呢?
我们有类似的情况,在我们的场景中,我们有多个项目并且它们都有junit,我们创建了另一个项目,其中包含测试配置和TestSuite,以包含所有项目的junits测试用例。运行 TestSuite 将为我们提供所有项目的覆盖范围。
虽然你有 Maven,但你可以使用类似的设计。
希望这个建议对你有所帮助。
干杯!!