Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot Junit Coverage(Integrating SWTbot with Sonar)
SWTBot Junit Coverage [message #1236810] Tue, 28 January 2014 05:33 Go to next message
Melwyn Jensen is currently offline Melwyn JensenFriend
Messages: 15
Registered: January 2014
Junior Member
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 09:39 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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 09:32 Go to previous messageGo to next message
Melwyn Jensen is currently offline Melwyn JensenFriend
Messages: 15
Registered: January 2014
Junior Member
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 11:22 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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 14:00 Go to previous message
Melwyn Jensen is currently offline Melwyn JensenFriend
Messages: 15
Registered: January 2014
Junior Member
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: Fri Apr 19 22:06:29 GMT 2024

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

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

Back to the top