Is there a step-by-step guide on setting up your project to use cover story? I've been trying off and on and usually get tired and frustrated with it. The errors are so cryptic. Getting undefined symbols errors and the shell script is failing.
> Is there a step-by-step guide on setting up your project to use cover > story? I've been trying off and on and usually get tired and > frustrated with it. The errors are so cryptic. Getting undefined > symbols errors and the shell script is failing.
> 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.
Here's what I did. It worked for me under Xcode 3.1.2:
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.
> Is there a step-by-step guide on setting up your project to use cover > story? I've been trying off and on and usually get tired and > frustrated with it. The errors are so cryptic. Getting undefined > symbols errors and the shell script is failing.
> A step by step example guide would be nice.
> Thanks for any help.
> -- > You received this message because you are subscribed to the Google > Groups "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com > . > To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@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!"
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.
On Feb 10, 10:38 pm, Dave MacLachlan <dmacl...@gmail.com> wrote:
> > Is there a step-by-step guide on setting up your project to use cover > > story? I've been trying off and on and usually get tired and > > frustrated with it. The errors are so cryptic. Getting undefined > > symbols errors and the shell script is failing.
> > 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.
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.
On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
> Here's what I did. It worked for me under Xcode 3.1.2:
> 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
> On Feb 10, 2010, at 10:20 PM, Nathan wrote:
> > Is there a step-by-step guide on setting up your project to use cover > > story? I've been trying off and on and usually get tired and > > frustrated with it. The errors are so cryptic. Getting undefined > > symbols errors and the shell script is failing.
> > A step by step example guide would be nice.
> > Thanks for any help.
> > -- > > You received this message because you are subscribed to the Google > > Groups "coverstory-discuss" group. > > To post to this group, send email to coverstory-discuss@googlegroups.com > > . > > To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com > > . > > For more options, visit this group athttp://groups.google.com/group/coverstory-discuss?hl=en > > .
> -- > "Save the Earth; it's the only planet with chocolate!"
> 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 > 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.
> On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
> > Here's what I did. It worked for me under Xcode 3.1.2:
> > 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
> > On Feb 10, 2010, at 10:20 PM, Nathan wrote:
> > > Is there a step-by-step guide on setting up your project to use cover > > > story? I've been trying off and on and usually get tired and > > > frustrated with it. The errors are so cryptic. Getting undefined > > > symbols errors and the shell script is failing.
> > > A step by step example guide would be nice.
> > > Thanks for any help.
> > > -- > > > You received this message because you are subscribed to the Google > > > Groups "coverstory-discuss" group. > > > To post to this group, send email to coverstory-discuss@googlegroups.com > > > . > > > To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com > > > . > > > For more options, visit this group athttp://groups.google.com/group/coverstory-discuss?hl=en > > > .
> > -- > > "Save the Earth; it's the only planet with chocolate!"
[mailto:coverstory-discuss@googlegroups.com] On Behalf Of Pat McGee Sent: Wednesday, February 10, 2010 11:10 PM To: coverstory-discuss@googlegroups.com Subject: Re: [coverstory-discuss:221] Re: Step-by-step guide
On Feb 10, 2010, at 11:53 PM, Nathan wrote:
> 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
-- "Save the Earth; it's the only planet with chocolate!"
-- You received this message because you are subscribed to the Google Groups "coverstory-discuss" group. To post to this group, send email to coverstory-discuss@googlegroups.com. To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/coverstory-discuss?hl=en.
> -- > You received this message because you are subscribed to the Google > Groups > "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com > . > To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/coverstory-discuss?hl=en.
> -- > You received this message because you are subscribed to the Google > Groups "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com > . > To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/coverstory-discuss?hl=en > .
We haven't done a lot of testing on Snow Leopard yet. Due to some networking issues with SL on our internal network we're not using it heavily here at Google yet. I'll take a look and see how it's working tomorrow AM (PST).
>> 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 >> 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.
>> On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
>>> Here's what I did. It worked for me under Xcode 3.1.2:
>>> 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
>>> On Feb 10, 2010, at 10:20 PM, Nathan wrote:
>>>> Is there a step-by-step guide on setting up your project to use >>>> cover >>>> story? I've been trying off and on and usually get tired and >>>> frustrated with it. The errors are so cryptic. Getting undefined >>>> symbols errors and the shell script is failing.
>>>> A step by step example guide would be nice.
>>>> Thanks for any help.
>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "coverstory-discuss" group. >>>> To post to this group, send email to coverstory-discuss@googlegroups.com >>>> . >>>> To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com >>>> . >>>> For more options, visit this group athttp://groups.google.com/group/coverstory-discuss?hl=en >>>> .
>>> -- >>> "Save the Earth; it's the only planet with chocolate!"
> -- > You received this message because you are subscribed to the Google > Groups "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com > . > To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/coverstory-discuss?hl=en > .
[mailto:coverstory-discuss@googlegroups.com] On Behalf Of Dave MacLachlan Sent: Wednesday, February 10, 2010 11:33 PM To: coverstory-discuss@googlegroups.com Subject: Re: [coverstory-discuss:224] Re: Step-by-step guide
We haven't done a lot of testing on Snow Leopard yet. Due to some networking issues with SL on our internal network we're not using it heavily here at Google yet. I'll take a look and see how it's working tomorrow AM (PST).
>> 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 >> 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.
>> On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
>>> Here's what I did. It worked for me under Xcode 3.1.2:
>>> 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
>>> On Feb 10, 2010, at 10:20 PM, Nathan wrote:
>>>> Is there a step-by-step guide on setting up your project to use >>>> cover >>>> story? I've been trying off and on and usually get tired and >>>> frustrated with it. The errors are so cryptic. Getting undefined >>>> symbols errors and the shell script is failing.
>>>> A step by step example guide would be nice.
>>>> Thanks for any help.
>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "coverstory-discuss" group. >>>> To post to this group, send email to coverstory-discuss@googlegroups.com >>>> . >>>> To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com >>>> . >>>> For more options, visit this group athttp://groups.google.com/group/coverstory-discuss?hl=en >>>> .
>>> -- >>> "Save the Earth; it's the only planet with chocolate!"
> -- > You received this message because you are subscribed to the Google > Groups "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com > . > To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com > . > For more options, visit this group at http://groups.google.com/group/coverstory-discuss?hl=en > .
-- You received this message because you are subscribed to the Google Groups "coverstory-discuss" group. To post to this group, send email to coverstory-discuss@googlegroups.com. To unsubscribe from this group, send email to coverstory-discuss+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/coverstory-discuss?hl=en.
The version mismatch is from gcc4.2 vs. gcc4.0, a matching versiom of gcov needs to be run. I'm not a code at the moment, but I thought I snuck in a hidden defaults for coverstory to change to the path to the gcov we use. Setting that default to point to the 4.2 gcov might fix things. Here's the issue, http://code.google.com/p/coverstory/issues/detail?id=20
On Thu, Feb 11, 2010 at 12:38 AM, Nathan <natha...@gmail.com> wrote: > Dude....let me fight through it some more. I got further than I was a few > weeks ago. I'll keep you updated. Do not go out of you way.
> I appreciate the rapid responses.
> -----Original Message----- > From: coverstory-discuss@googlegroups.com > [mailto:coverstory-discuss@googlegroups.com] On Behalf Of Dave MacLachlan > Sent: Wednesday, February 10, 2010 11:33 PM > To: coverstory-discuss@googlegroups.com > Subject: Re: [coverstory-discuss:224] Re: Step-by-step guide
> We haven't done a lot of testing on Snow Leopard yet. Due to some > networking issues with SL on our internal network we're not using it > heavily here at Google yet. I'll take a look and see how it's working > tomorrow AM (PST).
> >> 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 > >> 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.
> >> On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
> >>> Here's what I did. It worked for me under Xcode 3.1.2:
> >>> 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
> >>> On Feb 10, 2010, at 10:20 PM, Nathan wrote:
> >>>> Is there a step-by-step guide on setting up your project to use > >>>> cover > >>>> story? I've been trying off and on and usually get tired and > >>>> frustrated with it. The errors are so cryptic. Getting undefined > >>>> symbols errors and the shell script is failing.
> >>>> A step by step example guide would be nice.
> >>>> Thanks for any help.
> >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "coverstory-discuss" group. > >>>> To post to this group, send email to > coverstory-discuss@googlegroups.com > >>>> . > >>>> To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> > >>>> . > >>>> For more options, visit this group > athttp://groups.google.com/group/coverstory-discuss?hl=en > >>>> .
> >>> -- > >>> "Save the Earth; it's the only planet with chocolate!"
> > -- > > You received this message because you are subscribed to the Google > > Groups "coverstory-discuss" group. > > To post to this group, send email to coverstory-discuss@googlegroups.com > > . > > To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> > > . > > For more options, visit this group at > http://groups.google.com/group/coverstory-discuss?hl=en > > .
> -- > You received this message because you are subscribed to the Google Groups > "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com. > To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/coverstory-discuss?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com. > To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/coverstory-discuss?hl=en.
> The version mismatch is from gcc4.2 vs. gcc4.0, a matching versiom of gcov > needs to be run. I'm not a code at the moment, but I thought I snuck in a > hidden defaults for coverstory to change to the path to the gcov we use. > Setting that default to point to the 4.2 gcov might fix things. Here's the > issue, http://code.google.com/p/coverstory/issues/detail?id=20
> TVL
> On Thu, Feb 11, 2010 at 12:38 AM, Nathan <natha...@gmail.com> wrote:
>> Dude....let me fight through it some more. I got further than I was a >> few >> weeks ago. I'll keep you updated. Do not go out of you way.
>> I appreciate the rapid responses.
>> -----Original Message----- >> From: coverstory-discuss@googlegroups.com >> [mailto:coverstory-discuss@googlegroups.com] On Behalf Of Dave MacLachlan >> Sent: Wednesday, February 10, 2010 11:33 PM >> To: coverstory-discuss@googlegroups.com >> Subject: Re: [coverstory-discuss:224] Re: Step-by-step guide
>> We haven't done a lot of testing on Snow Leopard yet. Due to some >> networking issues with SL on our internal network we're not using it >> heavily here at Google yet. I'll take a look and see how it's working >> tomorrow AM (PST).
>> >> 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 >> >> 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.
>> >> On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
>> >>> Here's what I did. It worked for me under Xcode 3.1.2:
>> >>> 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
>> >>> On Feb 10, 2010, at 10:20 PM, Nathan wrote:
>> >>>> Is there a step-by-step guide on setting up your project to use >> >>>> cover >> >>>> story? I've been trying off and on and usually get tired and >> >>>> frustrated with it. The errors are so cryptic. Getting undefined >> >>>> symbols errors and the shell script is failing.
>> >>>> A step by step example guide would be nice.
>> >>>> Thanks for any help.
>> >>>> -- >> >>>> You received this message because you are subscribed to the Google >> >>>> Groups "coverstory-discuss" group. >> >>>> To post to this group, send email to >> coverstory-discuss@googlegroups.com >> >>>> . >> >>>> To unsubscribe from this group, send email to >> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >> >>>> . >> >>>> For more options, visit this group >> athttp://groups.google.com/group/coverstory-discuss?hl=en >> >>>> .
>> >>> -- >> >>> "Save the Earth; it's the only planet with chocolate!"
>> > -- >> > You received this message because you are subscribed to the Google >> > Groups "coverstory-discuss" group. >> > To post to this group, send email to >> coverstory-discuss@googlegroups.com >> > . >> > To unsubscribe from this group, send email to >> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >> > . >> > For more options, visit this group at >> http://groups.google.com/group/coverstory-discuss?hl=en >> > .
>> -- >> You received this message because you are subscribed to the Google Groups >> "coverstory-discuss" group. >> To post to this group, send email to coverstory-discuss@googlegroups.com. >> To unsubscribe from this group, send email to >> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/coverstory-discuss?hl=en.
>> --
>> You received this message because you are subscribed to the Google Groups >> "coverstory-discuss" group. >> To post to this group, send email to coverstory-discuss@googlegroups.com. >> To unsubscribe from this group, send email to >> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/coverstory-discuss?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com. > To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/coverstory-discuss?hl=en.
Looks like I didn't make it a default. CoverStoryDocument.m has the quick checks for /usr/bin/gcov vs. /Developer/usr/bin/gcov, try changing those to be gcov-4.2 (or gcov-4.0) and see if that makes things happier on Snow Leopard.
On Thu, Feb 11, 2010 at 8:48 AM, Nathan <natha...@gmail.com> wrote: > Thanks for the quick response.
> Where do I change that setting? Or how do I "find" the 4.2 gcov?
> On Thu, Feb 11, 2010 at 7:25 AM, Thomas Van Lenten <thoma...@gmail.com>wrote:
>> The version mismatch is from gcc4.2 vs. gcc4.0, a matching versiom of gcov >> needs to be run. I'm not a code at the moment, but I thought I snuck in a >> hidden defaults for coverstory to change to the path to the gcov we use. >> Setting that default to point to the 4.2 gcov might fix things. Here's the >> issue, http://code.google.com/p/coverstory/issues/detail?id=20
>> TVL
>> On Thu, Feb 11, 2010 at 12:38 AM, Nathan <natha...@gmail.com> wrote:
>>> Dude....let me fight through it some more. I got further than I was a >>> few >>> weeks ago. I'll keep you updated. Do not go out of you way.
>>> I appreciate the rapid responses.
>>> -----Original Message----- >>> From: coverstory-discuss@googlegroups.com >>> [mailto:coverstory-discuss@googlegroups.com] On Behalf Of Dave >>> MacLachlan >>> Sent: Wednesday, February 10, 2010 11:33 PM >>> To: coverstory-discuss@googlegroups.com >>> Subject: Re: [coverstory-discuss:224] Re: Step-by-step guide
>>> We haven't done a lot of testing on Snow Leopard yet. Due to some >>> networking issues with SL on our internal network we're not using it >>> heavily here at Google yet. I'll take a look and see how it's working >>> tomorrow AM (PST).
>>> >> 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 >>> >> 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.
>>> >> On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
>>> >>> Here's what I did. It worked for me under Xcode 3.1.2:
>>> >>> 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
>>> >>> On Feb 10, 2010, at 10:20 PM, Nathan wrote:
>>> >>>> Is there a step-by-step guide on setting up your project to use >>> >>>> cover >>> >>>> story? I've been trying off and on and usually get tired and >>> >>>> frustrated with it. The errors are so cryptic. Getting undefined >>> >>>> symbols errors and the shell script is failing.
>>> >>>> A step by step example guide would be nice.
>>> >>>> Thanks for any help.
>>> >>>> -- >>> >>>> You received this message because you are subscribed to the Google >>> >>>> Groups "coverstory-discuss" group. >>> >>>> To post to this group, send email to >>> coverstory-discuss@googlegroups.com >>> >>>> . >>> >>>> To unsubscribe from this group, send email to >>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>> >>>> . >>> >>>> For more options, visit this group >>> athttp://groups.google.com/group/coverstory-discuss?hl=en >>> >>>> .
>>> >>> -- >>> >>> "Save the Earth; it's the only planet with chocolate!"
>>> > -- >>> > You received this message because you are subscribed to the Google >>> > Groups "coverstory-discuss" group. >>> > To post to this group, send email to >>> coverstory-discuss@googlegroups.com >>> > . >>> > To unsubscribe from this group, send email to >>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>> > . >>> > For more options, visit this group at >>> http://groups.google.com/group/coverstory-discuss?hl=en >>> > .
>>> -- >>> You received this message because you are subscribed to the Google Groups >>> "coverstory-discuss" group. >>> To post to this group, send email to coverstory-discuss@googlegroups.com >>> . >>> To unsubscribe from this group, send email to >>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/coverstory-discuss?hl=en.
>>> --
>>> You received this message because you are subscribed to the Google Groups >>> "coverstory-discuss" group. >>> To post to this group, send email to coverstory-discuss@googlegroups.com >>> . >>> To unsubscribe from this group, send email to >>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/coverstory-discuss?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "coverstory-discuss" group. >> To post to this group, send email to coverstory-discuss@googlegroups.com. >> To unsubscribe from this group, send email to >> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/coverstory-discuss?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com. > To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/coverstory-discuss?hl=en.
> Looks like I didn't make it a default. CoverStoryDocument.m has the quick > checks for /usr/bin/gcov vs. /Developer/usr/bin/gcov, try changing those to > be gcov-4.2 (or gcov-4.0) and see if that makes things happier on Snow > Leopard.
> TVL
> On Thu, Feb 11, 2010 at 8:48 AM, Nathan <natha...@gmail.com> wrote:
>> Thanks for the quick response.
>> Where do I change that setting? Or how do I "find" the 4.2 gcov?
>> On Thu, Feb 11, 2010 at 7:25 AM, Thomas Van Lenten <thoma...@gmail.com>wrote:
>>> The version mismatch is from gcc4.2 vs. gcc4.0, a matching versiom of >>> gcov needs to be run. I'm not a code at the moment, but I thought I snuck >>> in a hidden defaults for coverstory to change to the path to the gcov we >>> use. Setting that default to point to the 4.2 gcov might fix things. >>> Here's the issue, >>> http://code.google.com/p/coverstory/issues/detail?id=20
>>> TVL
>>> On Thu, Feb 11, 2010 at 12:38 AM, Nathan <natha...@gmail.com> wrote:
>>>> Dude....let me fight through it some more. I got further than I was a >>>> few >>>> weeks ago. I'll keep you updated. Do not go out of you way.
>>>> I appreciate the rapid responses.
>>>> -----Original Message----- >>>> From: coverstory-discuss@googlegroups.com >>>> [mailto:coverstory-discuss@googlegroups.com] On Behalf Of Dave >>>> MacLachlan >>>> Sent: Wednesday, February 10, 2010 11:33 PM >>>> To: coverstory-discuss@googlegroups.com >>>> Subject: Re: [coverstory-discuss:224] Re: Step-by-step guide
>>>> We haven't done a lot of testing on Snow Leopard yet. Due to some >>>> networking issues with SL on our internal network we're not using it >>>> heavily here at Google yet. I'll take a look and see how it's working >>>> tomorrow AM (PST).
>>>> >> 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 >>>> >> 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.
>>>> >> On Feb 10, 10:39 pm, Pat McGee <j...@xorandor.com> wrote:
>>>> >>> Here's what I did. It worked for me under Xcode 3.1.2:
>>>> >>> 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
>>>> >>> On Feb 10, 2010, at 10:20 PM, Nathan wrote:
>>>> >>>> Is there a step-by-step guide on setting up your project to use >>>> >>>> cover >>>> >>>> story? I've been trying off and on and usually get tired and >>>> >>>> frustrated with it. The errors are so cryptic. Getting undefined >>>> >>>> symbols errors and the shell script is failing.
>>>> >>>> A step by step example guide would be nice.
>>>> >>>> Thanks for any help.
>>>> >>>> -- >>>> >>>> You received this message because you are subscribed to the Google >>>> >>>> Groups "coverstory-discuss" group. >>>> >>>> To post to this group, send email to >>>> coverstory-discuss@googlegroups.com >>>> >>>> . >>>> >>>> To unsubscribe from this group, send email to >>>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>>> >>>> . >>>> >>>> For more options, visit this group >>>> athttp://groups.google.com/group/coverstory-discuss?hl=en >>>> >>>> .
>>>> >>> -- >>>> >>> "Save the Earth; it's the only planet with chocolate!"
>>>> > -- >>>> > You received this message because you are subscribed to the Google >>>> > Groups "coverstory-discuss" group. >>>> > To post to this group, send email to >>>> coverstory-discuss@googlegroups.com >>>> > . >>>> > To unsubscribe from this group, send email to >>>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>>> > . >>>> > For more options, visit this group at >>>> http://groups.google.com/group/coverstory-discuss?hl=en >>>> > .
>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups >>>> "coverstory-discuss" group. >>>> To post to this group, send email to >>>> coverstory-discuss@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/coverstory-discuss?hl=en.
>>>> --
>>>> You received this message because you are subscribed to the Google >>>> Groups "coverstory-discuss" group. >>>> To post to this group, send email to >>>> coverstory-discuss@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/coverstory-discuss?hl=en.
>>> -- >>> You received this message because you are subscribed to the Google Groups >>> "coverstory-discuss" group. >>> To post to this group, send email to coverstory-discuss@googlegroups.com >>> . >>> To unsubscribe from this group, send email to >>> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/coverstory-discuss?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "coverstory-discuss" group. >> To post to this group, send email to coverstory-discuss@googlegroups.com. >> To unsubscribe from this group, send email to >> coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/coverstory-discuss?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "coverstory-discuss" group. > To post to this group, send email to coverstory-discuss@googlegroups.com. > To unsubscribe from this group, send email to > coverstory-discuss+unsubscribe@googlegroups.com<coverstory-discuss%2Bunsubs cribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/coverstory-discuss?hl=en.