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





Am Mittwoch, 16. April 2014 18:10:10 UTC+2 schrieb Marc R. Hoffmann:
>
> 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 [email protected] <javascript:>. 
> >  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 
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to