Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Code coverage for Xtend (outside of maven build)
Code coverage for Xtend (outside of maven build) [message #1782462] Fri, 23 February 2018 16:48 Go to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 131
Registered: July 2009
Senior Member
I'm using jacoco to get code coverage reports. With Eclemma I can run a test with code coverage manually to get markup in the Java editor. All this works fine for Java code that is generated from xtend code.
I found a blog post https://christiandietrich.wordpress.com/2016/01/12/code-coverage-for-xtend/ that describes how to get the markup in xtend, but that works only when running a maven build. Is there a way to get colored markup in the xtend editor after running a test manually? I can't see any preferences in eclipse that correspond to the configuration settings for the xtend-maven-plugin described in the blog post.
Re: Code coverage for Xtend (outside of maven build) [message #1782467 is a reply to message #1782462] Fri, 23 February 2018 17:53 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12033
Registered: July 2009
Senior Member
i dont know any.

you have to set the following in the prefs,

outlet.DEFAULT_OUTPUT.installDslAsPrimarySource=true

but e.g. eclemma ignores that?
why: => you need to investigate


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Code coverage for Xtend (outside of maven build) [message #1782472 is a reply to message #1782467] Fri, 23 February 2018 18:54 Go to previous messageGo to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 131
Registered: July 2009
Senior Member
Ah, it's "Ignore generated Java source when debugging (Use for Android)" in the Xtend compiler settings.
Re: Code coverage for Xtend (outside of maven build) [message #1782475 is a reply to message #1782472] Fri, 23 February 2018 19:14 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12033
Registered: July 2009
Senior Member
yes. but eclemma does not seem to care.

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Code coverage for Xtend (outside of maven build) [message #1782627 is a reply to message #1782475] Tue, 27 February 2018 09:40 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1750
Registered: July 2009
Location: Firenze, Italy
Senior Member
Sonarqube will ignore that as well...
Previous Topic:Custom Lexer and Semantic Predicates issue
Next Topic:configure multiple generators with XText 2.9
Goto Forum:
  


Current Time: Wed Jun 20 21:00:17 GMT 2018

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

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

Back to the top