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.
我有几个Selenium测试,想知道它们的覆盖率(用 Cobertura 测量)。我使用 Maven 2 作为构建框架。
在执行我的 Selenium 测试之前,我使用mvn jetty:run.
mvn jetty:run
为了让覆盖率数据出现在我的报告中,我需要 Jetty 使用检测代码。
我可以使用mvn cobertura:instrument. 但是我怎样才能告诉 Jetty 使用检测代码(目录目标/生成的类/cobertura)?
mvn cobertura:instrument
提前致谢
德米特里
在 jetty-maven-plugin 插件条目的配置元素中,您可以指定元素,这将导致它使用不同的路径来查找类。
如果您设置您将以下内容添加到您的码头插件元素,我认为您将开展业务:
<classesDirectory>${basedir}/target/generated-classes/cobertura</classesDirectory>