Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Code Coverage across projects: (8 Items)
   
Code Coverage across projects  
Hello,

I am using Momentics 4.01 (QNX 6.3.2) and I am trying to get Code Coverage results across 2 projects.
One project is an executable binary (the test app), and the other project is a dynamically shared library.

The Code Coverage tool seems to complete, but when I go to review the results, I get an error and the results line for 
the test app are blank (not even the application name shows up, just the + sign).

The results for the library do show up, but are low (3.6%) and I know it should be higher than that.

If I put the lib files into the test app project and make one executable, then the CC tool works fine.

I have also tried this with Momentics 4.5 (Feb build), and get the same behavior.

I have attached the log file.  Any help is greatly appreciated.

Thank,
- Michael


Attachment: Text Error Log.txt 15.87 KB
Re: Code Coverage across projects  
I would recommend you to try the last integration build. Big changes 
were done in 4.5 after the February build.

Regards,

Alex.


Michael Cranston wrote:
>
> Hello,
>
> I am using Momentics 4.01 (QNX 6.3.2) and I am trying to get Code 
> Coverage results across 2 projects.
> One project is an executable binary (the test app), and the other 
> project is a dynamically shared library.
>
> The Code Coverage tool seems to complete, but when I go to review the 
> results, I get an error and the results line for the test app are 
> blank (not even the application name shows up, just the + sign).
>
> The results for the library do show up, but are low (3.6%) and I know 
> it should be higher than that.
>
> If I put the lib files into the test app project and make one 
> executable, then the CC tool works fine.
>
> I have also tried this with Momentics 4.5 (Feb build), and get the 
> same behavior.
>
> I have attached the log file.  Any help is greatly appreciated.
>
> Thank,
> - Michael
>
>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post7161
>
Re: Code Coverage across projects  
Thanks for the fast reply, I actually tried the latest 4.5 build, and I could not get CC to work for any of my projects.
  The results are always 0%.

I am using compiler version 3.3.5

Any other thoughts?

- Michael
Re: Code Coverage across projects  
That's quite strange. Could you please send me an example?

Michael Cranston wrote:
>
> Thanks for the fast reply, I actually tried the latest 4.5 build, and 
> I could not get CC to work for any of my projects.  The results are 
> always 0%.
>
> I am using compiler version 3.3.5
>
> Any other thoughts?
>
> - Michael
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post7163
>
Re: Code Coverage across projects  
I just figure out that i have the test project from your colleague Mike 
Zinni. I tested it using gcc 4.2.1. I'll try it using 3.3.5 and let you 
know about results.

Alex

Michael Cranston wrote:
>
> Thanks for the fast reply, I actually tried the latest 4.5 build, and 
> I could not get CC to work for any of my projects.  The results are 
> always 0%.
>
> I am using compiler version 3.3.5
>
> Any other thoughts?
>
> - Michael
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post7163
>
Re: Code Coverage across projects  
BTW, would you have any problems with the last integration build, I'd 
appreciate if you send your example to let us analyze the problem 
comprehensively

Best regards,

Alex.

Alex Chapiro wrote:
> I would recommend you to try the last integration build. Big changes 
> were done in 4.5 after the February build.
>
> Regards,
>
> Alex.
>
>
> Michael Cranston wrote:
>>
>> Hello,
>>
>> I am using Momentics 4.01 (QNX 6.3.2) and I am trying to get Code 
>> Coverage results across 2 projects.
>> One project is an executable binary (the test app), and the other 
>> project is a dynamically shared library.
>>
>> The Code Coverage tool seems to complete, but when I go to review the 
>> results, I get an error and the results line for the test app are 
>> blank (not even the application name shows up, just the + sign).
>>
>> The results for the library do show up, but are low (3.6%) and I know 
>> it should be higher than that.
>>
>> If I put the lib files into the test app project and make one 
>> executable, then the CC tool works fine.
>>
>> I have also tried this with Momentics 4.5 (Feb build), and get the 
>> same behavior.
>>
>> I have attached the log file.  Any help is greatly appreciated.
>>
>> Thank,
>> - Michael
>>
>>
>>
>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post7161
>>
>
>
Re: Code Coverage across projects  
Here is a small example project that does work in the 4.5 build from Feb, but not in the 4.5 build posted last week.

It is a single executable with a static lib linked in.

I will wrap up the app/dll example in a few minutes.


- Mike

Attachment: Compressed file HVAC_example.zip 894.62 KB
Re: Code Coverage across projects  
Hi Mike,

I investigated the problem for the static linking case (actually, 
app+dll is not compilable because of ZebraHeader.h lack). Indeed there 
are some errors I found and fixed (see attachment). It work better now. 
But there are still some problems.  Don't be surprised that this stuff 
is so buggy: I reiterate that we don't fix old compiler bugs any more. 
IDE 4.5 should be totally GCC4.2 platform. So I'd recommend you to 
switch to the new compiler. I appreciate your feedback, but it will be 
much more efficient would you provide it on the base of new tools. It 
cold really help us to improve this feature quality until new release comes.

Thanks,

Alex

Michael Cranston wrote:
>
> <<<  Incoming Message Inspected due to ZIP attachment >> <<Sourceforge 
> Attachment>> >
> Here is a small example project that does work in the 4.5 build from 
> Feb, but not in the 4.5 build posted last week.
>
> It is a single executable with a static lib linked in.
>
> I will wrap up the app/dll example in a few minutes.
>
>
> - Mike
>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post7173
>


Attachment: Text com.qnx.tools.ide.coverage.core_4.5.0.200804231426.jar 176.85 KB