Hi Mark, 

JaCoCo supports two modes: 

1) Either JaCoCo Java agent (with on-the-fly instrumentation)
2) Or offline instrumentation 

As stated in our documentation 1) is recommended. So no need to
instrument class files. 

So the only thing you need to do is to configure the JaCoCo agent for
your test execution. 

As the "coverage" task does not support yunit you can create the agent
parameter with the "agent" task and store it in a Ant property. Then for
the yunit task you need to add this to the JVM command line (please
check yunit documentation for this). 

Regards,
-marc 

On 2017-09-19 14:34, 'Mark Lübbe' via JaCoCo and EclEmma Users wrote:

> Hi Marc, 
> 
> yes you are right and my answer was 
> 
> https://groups.google.com/d/msg/jacoco/jK8vXyDUEwI/S1YpRK9dQ5QJ 
> 
> 3 years ago it was only a test, but now we have to use jacoco, because 
> sonarqube > 6.3 only supports jacoco 
> 
> actually I use the following task to instrument my classes 
> 
> <jacoco:instrument destdir="bin/extension/classes-backup" 
> xmlns:jacoco="antlib:org.jacoco.ant"> 
> <fileset dir="bin/extension/classes" includes="**/*.class"/> 
> </jacoco:instrument> 
> 
> You are talking about the agent. How can I use them after instrumenting the 
> files? 
> 
> Can I use the jacoco:coverage task? 
> 
> Thanks , 
> Mark 
> 
> Am Dienstag, 19. September 2017 13:14:46 UTC+2 schrieb Marc R. Hoffmann: 
> 
> Hi Mark, 
> 
> I think you asked this question before. My answer was: 
> 
> https://groups.google.com/d/msg/jacoco/jK8vXyDUEwI/79tvhgpEqtEJ [1] 
> 
> Regards,
> -marc 
> 
> On 2017-09-19 11:13, 'Mark Lübbe' via JaCoCo and EclEmma Users wrote: 
> Hello, 
> 
> at this time we are using Cobertura(cobertura-instrument, cobertura-coverage 
> ) and yunit (allwebtest and alltests) from the hybris platform and in the 
> future we want to use jacoco with hybris. 
> 
> Ho can continue to use the hybris ant tasks (alltests and allwebtests) and 
> still use jacoco? 
> 
> Unfortunately, I found no suitable documentation about it. 
> 
> I cannot run the junit task inside of the jacoco:coverage task, because I 
> want to use the hybris tasks yunit. 
> 
> Which tasks of jacoco I have to use? 
> 
> The following link I have seen, but I find no helpful information. 
> 
> http://www.eclemma.org/jacoco/trunk/doc/ant.html [2] 
> 
> thanks, 
> Mark 
> 
> -- 
> 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].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/c887317b-367d-4a3e-be93-a785ad1caa38%40googlegroups.com
>  [3].
> For more options, visit https://groups.google.com/d/optout [4].

  -- 
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/796f0385-567d-4cd9-acdd-12e70cc8b637%40googlegroups.com
[5].
For more options, visit https://groups.google.com/d/optout. 

  

Links:
------
[1] https://groups.google.com/d/msg/jacoco/jK8vXyDUEwI/79tvhgpEqtEJ
[2] http://www.eclemma.org/jacoco/trunk/doc/ant.html
[3]
https://groups.google.com/d/msgid/jacoco/c887317b-367d-4a3e-be93-a785ad1caa38%40googlegroups.com?utm_medium=email&amp;utm_source=footer
[4] https://groups.google.com/d/optout
[5]
https://groups.google.com/d/msgid/jacoco/796f0385-567d-4cd9-acdd-12e70cc8b637%40googlegroups.com?utm_medium=email&amp;utm_source=footer

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/f2e2716bf7e854a6e3e41c526346ad45%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to