|
|
Re: Code Coverage [message #1611300 is a reply to message #1599128] |
Wed, 11 February 2015 04:22   |
Eclipse User |
|
|
|
Hi,
I also made some tries regarding the code coverage during tests by using the Jacoco agent.
In general, the JaCoCo agent can be easily integrated as described in previous comment, I added the following argument to my launch configuration:
-javaagent:e:\RCPTT\Coverage\JacocoAgent\jacocoagent.jar=destfile=e:\RCPTT\Coverage\test.exec
When I start the AUT, the destination file is created and filled during the test. After execution, the file can be imported as coverage session to Eclipse/EclEmma to have the results in the known view in Eclipse. I have not checked if the result is reasonable, but at least something is written
I think it will be also possible to combine the results of the GUI and Unit-Tests, if both test runs write to the same result file with the 'append' option (see also the linked Jacoco agent DOC page from previous comment). Alternatively, both sessions maybe imported to EclEmma and combined there. There was an option for such things in the coverage view, but I did not try this so far.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04650 seconds