A step by step example guide would be nice.
Thanks for any help.
Can you give us the build output that you are seeing? That'll help me
put together a guide and it will be sure to address your pain points.
Cheers,
Dave
Create a new configuration by copying the Debug configuration. (Do
"get info" on project; select "Configurations" tab.) Name it
"Coverage". In that configuration, change the following build settings:
Add "-lgcov" to "Other Linker Flags"
Turn on "Instrument Program Flow"
Turn on "Generate Test Coverage Files"
Clean all targets, build, go. Make sure you only run the specific
tests you want coverage of.
Presumably the last step was to start CoverStory and navigate to
the .gcda files, but I didn't write notes for that. Presumably that
means it just worked.
If that doesn't work for you, please let me know.
Pat
> --
> You received this message because you are subscribed to the Google
> Groups "coverstory-discuss" group.
> To post to this group, send email to coverstor...@googlegroups.com
> .
> To unsubscribe from this group, send email to coverstory-disc...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/coverstory-discuss?hl=en
> .
>
--
"Save the Earth; it's the only planet with chocolate!"
Pat McGee, j...@XorAndOr.com
Again, I have been trying to use cover story on an off. But looks
like I finally made a break through.
Although I'm using Snow Leopard, I used these instructions:
http://code.google.com/p/google-toolbox-for-mac/wiki/TigerGcov
In the other linker flags, I fully qualified the libgcov.a file
(/Volumes/Data/Projects\ and\ Source\ Code/google-toolbox-for-mac/
TigerGcov/libgcov.a)
My target compiles and some files are being generated. However, one
issue. I'm not seeing and *.gcda files. Now, the site
www.realdevelopers.com/blog/?p=456 , step 3 says to clear the
environment variable….but I don't know how to do that.
Second…the other issue is…I trying to do code coverage on a static
library. My project has a target that's a static library and a target
that does unit tests on that library. I need to measure the code
coverage on the static library and not the unit test.
This is a lot further than I was a while back. So I guess I need to
keep plowing ahead. Any help would be necessary.
Again, I have been trying to use cover story on an off. But looks
like I finally made a break through.
Although I'm using Snow Leopard, I used these instructions:
http://code.google.com/p/google-toolbox-for-mac/wiki/TigerGcov
In the other linker flags, I fully qualified the libgcov.a file
(/Volumes/Data/Projects\ and\ Source\ Code/google-toolbox-for-mac/
TigerGcov/libgcov.a)
My target compiles and some files are being generated. However, one
issue. I'm not seeing and *.gcda files. Now, the site
www.realdevelopers.com/blog/?p=456 , step 3 says to clear the
environment variable….but I don't know how to do that.
Second…the other issue is…I trying to do code coverage on a static
library. My project has a target that's a static library and a target
that does unit tests on that library. I need to measure the code
coverage on the static library and not the unit test.
This is a lot further than I was a while back. So I guess I need to
keep plowing ahead. Any help would be necessary.
> > For more options, visit this group athttp://groups.google.com/group/coverstory-discuss?hl=en
I guess I'm using the wrong versions and need to do some downloading.
What a mess.
On Feb 10, 10:53 pm, Nathan <natha...@gmail.com> wrote:
> Hey guys, thanks for the rapid reply (surprised me).
>
> Again, I have been trying to use cover story on an off. But looks
> like I finally made a break through.
>
> Although I'm using Snow Leopard, I used these instructions:http://code.google.com/p/google-toolbox-for-mac/wiki/TigerGcov
>
> In the other linker flags, I fully qualified the libgcov.a file
> (/Volumes/Data/Projects\ and\ Source\ Code/google-toolbox-for-mac/
> TigerGcov/libgcov.a)
>
> My target compiles and some files are being generated. However, one
> issue. I'm not seeing and *.gcda files. Now, the sitewww.realdevelopers.com/blog/?p=456, step 3 says to clear the
> My target compiles and some files are being generated. However, one
> issue. I'm not seeing and *.gcda files.
Do you run (not just build) your code first? I think these are the
files that contain the counts of lines executed.
Pat
Pat
Pat McGee, j...@XorAndOr.com
You may also want to look at the GTM Xcode plugin (Available here)
http://code.google.com/p/google-toolbox-for-mac/downloads/list
That allows you to turn on Code Coverage, clean code coverage and
other exciting things.
Installation docs here:
http://code.google.com/p/google-toolbox-for-mac/wiki/GTMXcodePlugin
Cheers,
Dave
Cheers,
Dave
I appreciate the rapid responses.
-----Original Message-----
From: coverstor...@googlegroups.com
[mailto:coverstor...@googlegroups.com] On Behalf Of Dave MacLachlan
Sent: Wednesday, February 10, 2010 11:33 PM
To: coverstor...@googlegroups.com
Cheers,
Dave
>> environment variable..but I don't know how to do that.
>>
>> Second.the other issue is.I trying to do code coverage on a static