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
Regards,
-marc
> On 6. Jul 2020, at 15:03, [email protected] 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] <javascript:> 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] <javascript:>.
>> 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]
> <mailto:[email protected]>.
> 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/B69C3DFB-5429-4126-BB1F-3F7CB21C97EC%40mountainminds.com.