Using the Code Coverage devtool by selenium+maven automation?

≯℡__Kan透↙ 提交于 2019-12-04 13:36:35

问题


Is it possible to use the Code Coverage devtool (from upcoming Chrome release) by selenium+maven automation?

E.g. like JaCoCo for java projects?

I.e. I imagine approximately such scenario for our web-product:

There is a test suite with several test cases.

  • The Chrome Code Coverage collection is enabled somehow from outside
  • Then test suite is executed (by maven): The each test case uses Selenium to run Chrome browser, executes testing scenario and close the webdriver (browser is closed).

  • Then, after the suite is finished the code coverage data (CSS/JS related) could be collected and could be viewed as a report later.

来源:https://stackoverflow.com/questions/43591829/using-the-code-coverage-devtool-by-seleniummaven-automation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!