Code coverage for Selenium Tests
Is there any tool available to determine the code coverage for my selenium tests?
My tests are written in Java having use of selenium WebDriver with BDD-Cucumber implementation in it.
Finally, this solution works for me --
- Instrument the Istanbul.js.
Use Command - istanbul instrument test.js >> test-instumented.js
Now, use the below code in @AfterClass annotation. It will execute the below method after all tests.
- Crete a HTML using coverage,json using istanbul report.