Hi Mark, Could you please provide the steps to generate the Code Coverage for the Hybris projects using Sonar and jacoco after junit tests. It would be helpful.
Regards, Sudheer. On Friday, September 22, 2017 at 1:48:11 PM UTC+5:30, Mark Lübbe wrote: > Hi Marc, > > > thanks for your help :-) > > > I solved the problem. If someone else has a problem with jacoco and hybris, > please write me a private message. > > > Regards, > Mark > > > > > > > Am Dienstag, 19. September 2017 15:10:03 UTC+2 schrieb Marc R. Hoffmann: > > > 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 > > 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 > > > > 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. > For more options, visit 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/796f0385-567d-4cd9-acdd-12e70cc8b637%40googlegroups.com. > For more options, visit 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/5a3c16b0-8a87-421b-bb33-47434026e136%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
