Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Code Coverage(Is there any Option of Code Coverage? )
Code Coverage [message #1599128] Tue, 03 February 2015 06:51 Go to next message
Eclipse UserFriend
Hello Everyone,

I'm searching for an RCP Testing Tool and found the RCP Testing Tool Wink

My Company already use EclEmma for Code Coverage at Unittests.
Now we want to test our GUI with the Code Coverage EclEmma, to see what both of our Test (GUI and Unittest) cover from our Code.

So I didn't find any hint of Code Coverage in RCP Testing Tool, does that mean there is none?

Thanks,
Chris
Re: Code Coverage [message #1602176 is a reply to message #1599128] Thu, 05 February 2015 06:20 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Thank you for contacting us!
We don't provide this functionality out-of-the box but you could employ AUT virtual machine arguments to configure an arbitrary covers tool (eg. JaCoCo agent).

Add AUT with installed cover tool to RCPTT IDE, select AUT in Applications View and click Configure, click "Advanced...", then AUT configuration editor will be opened. You can set AUT VM arguments in Arguments tab of that editor.

Please let me know if it is suitable for you or you have any questions.
Re: Code Coverage [message #1611300 is a reply to message #1599128] Wed, 11 February 2015 04:22 Go to previous messageGo to next message
Eclipse UserFriend
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 Smile

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.

Re: Code Coverage [message #1709667 is a reply to message #1599128] Wed, 30 September 2015 04:06 Go to previous message
Eclipse UserFriend
Hi Andreas,

In this blogpost we are going to describe how to configure Eclipse to combine RCPTT UI tests with code coverage analytics tools EclEmma and Jacoco agent.

Kind regards,
Ulyana.
Previous Topic:Tests failing on 'Unknown reason'
Next Topic:Capturing only changed preferences from a specific base preferences context
Goto Forum:
  


Current Time: Sun Jun 22 08:44:34 EDT 2025

Powered by FUDForum. Page generated in 0.04650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top