I have been tasked with determining coverage of my suite of Webdriver
scripts. Essentially, what percentage of code do my automated scripts exercise?
Are there any tools that can be deployed that would highlight code snippets that were accessed as the automated scripts ran?
I can also potentially use the results for assessing gaps in the automated suite.
1 Answer 1
Have a look at JaCoCo, specifically the section on Session Import and Export. JaCoCo is an Eclipse plug-in. It's primary use case is to instrument code and show coverage within the IDE, which will highlight code snippets that were accessed. You can instrument your code, run your automated suite, and then import the execution data into Eclipse to view the executed code using the Session Import mentioned above.
Other tools that can accomplish this include Cobertura and EMMA.
Comments
Explore related questions
See similar questions with these tags.