我正在尝试使用 Cobertura 应用代码覆盖率。该应用程序部署在 Tomcat 5 中,但是当我检测 .class 文件时,该应用程序停止工作。
这是我的步骤:
- 编译应用程序(这在 tomcat 中运行)
检测类文件。
D:\test\cobertura-1.9.4.1\cobertura-instrument.bat --destination D:\test\instrument D:\src\path_to_app\main\target\webapp
用.
D:\src\path_to_app\main\target\webapp
_D:\test\instrument
- 通过 Catalina conf 或 war 文件在 Tomcat 中部署应用程序。(该应用程序不起作用)
有人有正确的步骤在 Tomcat 中使用 Cobertura 检测的类正确部署应用程序吗?
参考:http ://cobertura.sourceforge.net/faq.html
我正在使用 cobertura-1.9.4.1