Selenium testing and emma code coverage

Is there a way to get the code coverage when running selenium testing? The problem here is selenium is invoking the UI directly instead of the real source which UI component calling. So any solution please? I have try the eclemma plugin also but no luck.

Thanks.

1 Like

Emma and Cobertura can both instrument your classes to carry out coverage reporting (I’ve used Cobertura to do this and not EMMA) Emma carries out static analysis plus analysis of runtime events and I prefer it nowadays.

Clover can be pointed at the JVM to tell you coverage too - they explain how to do this.

Sonar’s product also allows measuring of dynamic tests - they’re feature is described on their site.