These solutions will provide code coverage for my program but I want to create program which will create code coverage for external programs... Like I will run my program then will set project directory of some external program and my program will show code coverage information... so user will have result with zero effort and dependency on IDE... So I want to know if is there some way to use Jacoco API provide these features and if yes what is prerequisite do so.
Thank you again. On Wednesday, 5 April 2017 10:50:24 UTC+2, Marc R. Hoffmann wrote: > > Hallo Ondrej, > > there is a couple of out-of-the-box solutions to do this: > > 1. Launch your program within Eclipse in coverage mode (using the > EclEmma code coverage plug-in http://www.eclemma.org/) > 2. Launch your program with a Maven build (using JaCoCo maven plugin > http://www.jacoco.org/jacoco/trunk/doc/maven.html) > 3. Launch your program with a Ant build (using the JaCoCo Ant tasks > http://www.jacoco.org/jacoco/trunk/doc/ant.html) > 4. Use any other integration of JaCoCo ( > http://www.jacoco.org/jacoco/trunk/doc/integrations.html) > > Regards, > -marc > > > > > > On 2017-04-03 19:25, Ondrej Zoricak wrote: > > Hello guys. > > I read documentations and I find some examples but I didn't find any > example how to write code coverage program using Jacoco API. I need just > number of lines which are executed when some external program is running so > I expected that my program should build and run this external project and > give me some result... but do I need Jacoco plugin for this or how is it > working? Thank you for any help. > > > -- > 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:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/8707283c-4baa-4748-9669-f8b5a5968eb8%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/8707283c-4baa-4748-9669-f8b5a5968eb8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/79f9c2e0-fbda-4543-bf88-0a9ca7ab45ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
