Skip to main content



      Home
Home » Eclipse Projects » SWTBot » SWTBot Junit Coverage(Integrating SWTbot with Sonar)
SWTBot Junit Coverage [message #1236810] Tue, 28 January 2014 00:33 Go to next message
Eclipse UserFriend
Hi All,

Can someone guide me on how to get the Junit coverage report for SWTBot UI testcases? I know that the major advantage of SWTBot is it's a wrapper around Junit but not able to find concrete information from the wiki for the same.

Right now trying to integrate with Sonar but somehow not getting the coverage report for the swtbot project still. Is there any documentation available for the same?

Didn't find the topic in forum, so created it which might help newbees like me Smile

Thanks.
Re: SWTBot Junit Coverage [message #1237280 is a reply to message #1236810] Wed, 29 January 2014 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Are you using Jacoco?

--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: SWTBot Junit Coverage [message #1237666 is a reply to message #1237280] Thu, 30 January 2014 04:32 Go to previous messageGo to next message
Eclipse UserFriend
No we have clover for the results.

Right now I can see the swbot project in the sonar with only the lines covered but the junit code coverage always shows as 0%.

Is there any more configuration need to be done explicitly for swtbot to show the code coverage?
Re: SWTBot Junit Coverage [message #1237704 is a reply to message #1237666] Thu, 30 January 2014 06:22 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, I don't know anything about Clover (I/we maintly use Jacoco for
that), so I can't provide help.
You're issue is not related to SWTBot, you would have the same issue
with a normal test plugin without SWTBot.

You could instead ask about your issue to the Tycho mailing-list (if
you're using Tycho).
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: SWTBot Junit Coverage [message #1237754 is a reply to message #1237704] Thu, 30 January 2014 09:00 Go to previous message
Eclipse UserFriend
Normal JUnit tests with other projects do give the code coverage, only swtbot project doesn't show up the coverage part.

Trying to follow these steps mentioned over here http://mdwhatever.free.fr/index.php/2011/09/quality-analysis-on-eclipse-plugins-with-tycho-sonar-jacoco-and-swtbot/ by adding jacoco plugin will update with the results.
Previous Topic:Re: Call Thread SWT from Swing
Next Topic:Unable to get the objects under multiple groups
Goto Forum:
  


Current Time: Wed Jul 16 08:26:28 EDT 2025

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

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

Back to the top