Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread Marc Hoffmann
Well, you need to understand how your classes under tests are actually executed, in particular what JVM instance is used for it and configure this JVM. As a side note: Did you actually execute the functionality of your classes when creating the test reports? In Eclipse RCP classes are loaded laz

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread geobruv19
How can this be fixed? I am sorry for the onslaught of questions. On Tuesday, July 7, 2020 at 3:28:43 PM UTC-4, Marc R. Hoffmann wrote: > > This means they have not been loaded by the JVM where you attached the > JaCoCo agent. > > > On 7. Jul 2020, at 20:09, geob...@gmail.com wrote: > > No, none

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread Marc Hoffmann
This means they have not been loaded by the JVM where you attached the JaCoCo agent. > On 7. Jul 2020, at 20:09, geobru...@gmail.com wrote: > > No, none of the classes classes that I have copied and set aside for report > generation appear on the sessions page. > > On Tuesday, July 7, 2020 at

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread geobruv19
No, none of the classes classes that I have copied and set aside for report generation appear on the sessions page. On Tuesday, July 7, 2020 at 1:56:19 PM UTC-4, Marc R. Hoffmann wrote: > > Just to be sure: Beside org.apache.* classes you you also see the classes > of your application in the lis

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread Marc Hoffmann
Just to be sure: Beside org.apache.* classes you you also see the classes of your application in the list? > On 7. Jul 2020, at 18:30, geobru...@gmail.com wrote: > > If I navigate to the session page, all the classes are written in plain text > and they are not the classes my report command p

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread geobruv19
If I navigate to the session page, all the classes are written in plain text and they are not the classes my report command points to with the classfile argument. I have attached a screenshot of the sessions page. Why would this be the case? On Tuesday, July 7, 2020 at 11:57:45 AM UTC-4, Marc R

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread Marc Hoffmann
Ok, that is not the reason. I was looking for a different hint. If you go to the Sessions page of the HTML report: * Can you see your application classes? * Are the classes linked to the report (or plain text)? > On 7. Jul 2020, at 17:43, geobru...@gmail.com wrote: > > The reason I ask if th

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread geobruv19
The reason I ask if the source files are necessary, is because I have been able to generate code coverage reports with non-zero results without the source files before. On Tuesday, July 7, 2020 at 11:12:58 AM UTC-4, geob...@gmail.com wrote: > > Regardless of the class I go to it says the source

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread geobruv19
Regardless of the class I go to it says the source file not found. To generate the report, are the source files necessary? On Tuesday, July 7, 2020 at 11:04:48 AM UTC-4, Marc R. Hoffmann wrote: > > Sorry, I mean navigating the links in the HTML report: > > Click on the package link, click on a cl

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread Marc Hoffmann
Sorry, I mean navigating the links in the HTML report: Click on the package link, click on a class in the package (that you would expect to be executed). > On 7. Jul 2020, at 17:02, geobru...@gmail.com wrote: > > I am sorry, but what do you mean by drill down the report to a single class? > I

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread geobruv19
I am sorry, but what do you mean by drill down the report to a single class? I have copied the classfiles from my application and stored them in a separate folder. I then have pointed classfile argument for the report generation command to this folder to iterate through the classes and determin

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread Marc Hoffmann
Ok, so you’re collecting execution data. Under the “Sessions” page all classes where data has been collected for are listed. Are your classes listed? The question now is, why the report shows them as not covered. Can you please drill down the report to a single class? There might be a hint ;) C

Re: [java code coverage] Code coverage on rcp application

2020-07-07 Thread Marc Hoffmann
Correct! No need to change to JaCoCo installation directory. Just provide the correct path to jacocoagent.jar. > On 7. Jul 2020, at 06:42, geobru...@gmail.com wrote: > > To be clear, this should launch the application and create the .exec file, so > then when the application is closed the com

Re: [java code coverage] Code coverage on rcp application

2020-07-06 Thread geobruv19
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/l

Re: [java code coverage] Code coverage on rcp application

2020-07-06 Thread Marc Hoffmann
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 Re

Re: [java code coverage] Code coverage on rcp application

2020-07-06 Thread geobruv19
[image: 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-

Re: [java code coverage] Code coverage on rcp application

2020-07-06 Thread Marc Hoffmann
So how exactly do you start your RCS application without JaCoCo? > On 6. Jul 2020, at 14:48, geobru...@gmail.com 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