测量驻留在单独项目中的硒测试的代码覆盖率
我有两个单独的 java maven 项目:一个是我的 Web 应用程序本身,另一个是我的 Web 的碲+硒自动化测试(我将这些测试移至单独的项目,因为它们的代码并不真正属于 Web 应用程序项目代码,并且不不要使用我的网络应用程序的java类,我也想重用这些测试的某些部分来测试我的其他网络应用程序)。因此,除了碲/硒配置文件(主机名、凭据、浏览器)之外,我的测试所在的项目对我的网络应用程序一无所知。
所以问题是:有没有什么方法可以测量由驻留在单独项目中的碲/硒测试调用的 Web 应用程序后端的代码覆盖率?
提前致谢。非常感谢任何帮助。
I have two separate java maven projects: one is my web app itself and other one is tellurium+selenium automation tests for my web(I moved these tests to separate projects as their code doesn't really belong to the web app project code and doesn't use java classes of my web app, also I want to reuse some parts of those tests for testing my other web apps). Therefore, project where my tests reside doesn't know anything about my web app, except tellurium/selenium conf files(host name, credentials, browser).
So the question: is there any way to measure code coverage of my web app backend that is invoked by my tellurium/selenium tests that reside in separate project?
Thanks in advance. Any help is highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
EMMA 或 cobetura 可以对您的课程进行检测,以便在测试运行后创建覆盖率报告。
http://emma.sourceforge.net/reference/ch02s03.html
EMMA or cobetura can instrument your classes so that after the test run they create a coverage report.
http://emma.sourceforge.net/reference/ch02s03.html