繁体   English   中英

测量驻留在单独项目中的硒测试的代码覆盖率

[英]Measuring code coverage for selenium tests that reside in separate project

我有两个独立的java maven项目:一个是我的web应用程序本身,另一个是我的web的碲+硒自动化测试(我将这些测试移动到单独的项目,因为他们的代码并不真正属于Web应用程序项目代码而且没有不使用我的网络应用程序的java类,我也想重用这些测试的某些部分来测试我的其他网络应用程序)。 因此,我的测试所在的项目对我的Web应用程序一无所知,除了碲/ selenium conf文件(主机名,凭据,浏览器)。

所以问题是:有没有办法测量我的web应用程序后端的代码覆盖率,这是由我的碲/硒测试调用的,这些测试位于单独的项目中?

提前致谢。 任何帮助都非常感谢。

EMMA或cobetura可以检测您的课程,以便在测试运行后创建一个覆盖率报告。

http://emma.sourceforge.net/reference/ch02s03.html

<instr>/instr is EMMA's offline class instrumentor. It adds bytecode
instrumentation to all classes found in an instrumentation path that
also pass through user-provided coverage filters. Additionally, it 
produces the class metadata file necessary for associating runtime 
coverage data with the original class definitions during coverage 
report generation.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM