Can I get code coverage data for a GWT web application that runs tests from a web browser?

I'm not sure if this is possible, but I would like information on the code coverage for the tests that are written in Quick Test for our GWT-based web application.

It doesn't seem like there is any solution, because Quick Test Pro tests are tested using a compiled GWT application, and not the original Java code in which the application was written. I believe that I could get the javascript coverage data generated by the GWT compiler, but I wouldn’t (I know this is not the case) to match this information with the Java source code.

Is there any way to do this?

+5
source share
2 answers

No, because you do not want to test GWT (or the GWT compiler): you want to test your own code. Therefore, you should get good coverage with standard unit tests and only verify that you cannot test this way with the Quick Test.

+3
source

If I understand the problem, are you code in Java, does GWT translate this into JavaScript, and you want to get coverage information for a Java program obtained from running the version of the GWT compiler?

If yes, then there is a way to do this. Our SD Java Test Coverage tool is a Java source code tool for collecting its coverage data.

SD, Java-. GWT, , Java.

. Java , "" ( "exit" ). ( ) . Javascript .

SD Java Test Coverage , Java. .

0

All Articles