Correct! No need to change to JaCoCo installation directory. Just provide the correct path to jacocoagent.jar.
> On 7. Jul 2020, at 06:42, [email protected] wrote: > > To be clear, this should launch the application and create the .exec file, so > then when the application is closed the command for html report generation > can be executed? In summary, I should navigate to the jacoco-0.8.6/lib/, > execute the following command: path/to/my.exe -vmargs > -javaagent:%s/lib/jacocoagent.jar=destfile=path/to/exec, then the test case > should execute (interacting with application's interface), close the > application, and run the command to generate a html code coverage report. > > On Monday, July 6, 2020 at 10:34:30 AM UTC-4, Marc R. Hoffmann wrote: > Hi, > > if your exe is a Eclipse RCP launcher you can add JVM arguments like this: > > your.exe -vmargs -javaagent:%s/lib/jacocoagent.jar=destfile=path/to/exec > > See Eclipse documentation: > > > https://help.eclipse.org/2020-06/topic/org.eclipse.platform.doc.user/tasks/running_eclipse.htm?cp=0_3_0 > > <https://help.eclipse.org/2020-06/topic/org.eclipse.platform.doc.user/tasks/running_eclipse.htm?cp=0_3_0> > > Regards, > -marc > > > > > > >> On 6. Jul 2020, at 15:03, [email protected] <javascript:> wrote: >> >> <Capture.PNG> >> >> I have attached an image above. This is standard practice in squish. I have >> designated a. exe file which squish will launch. After doing some reading, I >> believe it should be launched in a manner similar to that in the following >> link: >> https://www.froglogic.com/blog/tip-of-the-week/integrating-java-code-coverage-tools-with-squish-tests/ >> >> <https://www.froglogic.com/blog/tip-of-the-week/integrating-java-code-coverage-tools-with-squish-tests/>. >> However, if I were to simply use the .jar file I would not be testing the >> application that consumers interact with. Is there a way to launch the .exe >> file while still capturing code coverage? >> >> On Monday, July 6, 2020 at 8:53:58 AM UTC-4, Marc R. Hoffmann wrote: >> So how exactly do you start your RCS application without JaCoCo? >> >> >>> On 6. Jul 2020, at 14:48, [email protected] <> wrote: >>> >>> I am using Froglogic's Squish to test an rcp application. For each test >>> case I am looking to use Jacoco's command line interface to gather code >>> coverage exec files at the conclusion of each test case and then merge the >>> files to generate a running cumulative report. Because I am using an rcp >>> application there is neither a jar file or a singular classfile I can point >>> the following command at: >>> "java -javaagent:%s/lib/jacocoagent.jar=destfile=path/to/exec -jar jarfile" >>> How would I prep my application and testcases such that meaningful code >>> coverage reports are generated. Right now when a report is generated from >>> the exec, it reads zero for all categories. An screen capture of this can >>> be seen below. >>> <Capture.PNG> >>> >>> >>> >>> -- >>> 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/a935375c-ac1a-434c-9c2e-a0d1bdbc7e99o%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jacoco/a935375c-ac1a-434c-9c2e-a0d1bdbc7e99o%40googlegroups.com?utm_medium=email&utm_source=footer>. >>> <Capture.PNG> >> >> >> -- >> 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/65105762-080f-4058-a3fb-25f59f4ffa32o%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jacoco/65105762-080f-4058-a3fb-25f59f4ffa32o%40googlegroups.com?utm_medium=email&utm_source=footer>. >> <Capture.PNG> > > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/bd50de11-0542-4584-855b-bb679168eadco%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/bd50de11-0542-4584-855b-bb679168eadco%40googlegroups.com?utm_medium=email&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/64CF6171-CA0A-4DBA-A4BF-7313B72D93A8%40mountainminds.com.
