小编Gar*_*eve的帖子

Tomcat上的Cobertura

我正在尝试使用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
    
    Run Code Online (Sandbox Code Playgroud)
  • 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

7
推荐指数
1
解决办法
5736
查看次数

标签 统计

cobertura ×1

code-coverage ×1

java ×1

tomcat ×1