【发布时间】:2011-07-15 09:11:00
【问题描述】:
我正在尝试使用 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
【问题讨论】:
标签: java tomcat code-coverage cobertura