hybris jacoco

946 views
Skip to first unread message

Mark Lübbehüsen

unread,
Apr 16, 2014, 9:38:49 AM4/16/14
to jac...@googlegroups.com

Hello, 

we want to use the jacoco code coverage tool for a hybris project with Ant and Jenkins. 

We have found no guidance specifically for yunit only for junit.

http://www.eclemma.org/jacoco/trunk/doc/ant.html 

If I call the yunit as a child of Jacoco:coverage, it comes the following error message. 

testing.xml:107: yunit is not a valid child of the coverage task


System:

Ant1.9

Jenkins 1.527

 

How is it possible to use the code coverage tool jacoco with yunit?

thx

Marc Hoffmann

unread,
Apr 16, 2014, 12:10:10 PM4/16/14
to jac...@googlegroups.com
Hi,

'yunit' task ist not supported by the coverage task.

What you can do as a workaround is to create the JaCoCo VM parameter
with the 'agent' task and supply this parameter to the 'yunit' task with
the respective option.

See documentation:
http://www.eclemma.org/jacoco/trunk/doc/ant.html#agent

Best regards,
-marc

On 2014-04-16 15:38, Mark Lübbehüsen wrote:
> Hello,
>
> we want to use the jacoco code coverage tool for a hybris project with
> Ant and Jenkins.
>
> We have found no guidance specifically for yunit only for junit.
>
> http://www.eclemma.org/jacoco/trunk/doc/ant.html [1]
>
> If I call the yunit as a child of Jacoco:coverage, it comes the
> following error message.
>
> testing.xml:107: yunit is not a valid child of the coverage task
>
> System:
>
> Ant1.9
>
> Jenkins 1.527
>
> How is it possible to use the code coverage tool jacoco with yunit?
>
> thx
>
> --
> You received this message because you are subscribed to the Google
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jacoco+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout [2].
>
>
> Links:
> ------
> [1] http://www.eclemma.org/jacoco/trunk/doc/ant.html
> [2] https://groups.google.com/d/optout

Mark Lübbe

unread,
Apr 17, 2014, 3:16:12 AM4/17/14
to jac...@googlegroups.com
Hi Mark,

thanks for your response

We are not sure how i have to use the jacoco:agent.

We have two files. The first file is the jacoco_build.xml with the jacoco:instrument and jacoco:report and the other file is the testing.xml with the yunit call.


Where we have to use the Jacoco:agent? In the jacoco_build.xml with instrument and report?

How we have to use the Property of the Jacoco:agent? You said inside of the yunit tag?

Can you please give me a simple example?

thank you so much

Best regards,
Mark

mura...@gmail.com

unread,
Apr 30, 2016, 1:01:11 AM4/30/16
to JaCoCo and EclEmma Users
On Wednesday, 16 April 2014 19:08:49 UTC+5:30, Mark Lübbe wrote:
> Hello, 
> i am facing the same issue on getting the coverage report to make publish of sonarqube. if the problem resolved, can you help me
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages