Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Step-by-step guide
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nathan  
View profile  
 More options Feb 10 2010, 10:20 pm
From: Nathan <natha...@gmail.com>
Date: Wed, 10 Feb 2010 19:20:23 -0800 (PST)
Local: Wed, Feb 10 2010 10:20 pm
Subject: Step-by-step guide
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave MacLachlan  
View profile  
 More options Feb 10 2010, 11:38 pm
From: Dave MacLachlan <dmacl...@gmail.com>
Date: Wed, 10 Feb 2010 20:38:42 -0800
Local: Wed, Feb 10 2010 11:38 pm
Subject: Re: [coverstory-discuss:215] Step-by-step guide

On Feb 10, 2010, at 7: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.

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat McGee  
View profile  
 More options Feb 10 2010, 11:39 pm
From: Pat McGee <j...@xorandor.com>
Date: Wed, 10 Feb 2010 23:39:51 -0500
Local: Wed, Feb 10 2010 11:39 pm
Subject: Re: [coverstory-discuss:215] Step-by-step guide
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:

--
"Save the Earth; it's the only planet with chocolate!"

Pat McGee, j...@XorAndOr.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Feb 10 2010, 11:52 pm
From: Nathan <natha...@gmail.com>
Date: Wed, 10 Feb 2010 20:52:42 -0800 (PST)
Local: Wed, Feb 10 2010 11:52 pm
Subject: Re: Step-by-step guide
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 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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Feb 10 2010, 11:53 pm
From: Nathan <natha...@gmail.com>
Date: Wed, 10 Feb 2010 20:53:01 -0800 (PST)
Local: Wed, Feb 10 2010 11:53 pm
Subject: Re: Step-by-step guide
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 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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Feb 11 2010, 12:08 am
From: Nathan <natha...@gmail.com>
Date: Wed, 10 Feb 2010 21:08:05 -0800 (PST)
Local: Thurs, Feb 11 2010 12:08 am
Subject: Re: Step-by-step guide
Oh, also, I'm getting 'Version mismatch - expected 400A got 402*"

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pat McGee  
View profile  
 More options Feb 11 2010, 12:09 am
From: Pat McGee <j...@xorandor.com>
Date: Thu, 11 Feb 2010 00:09:30 -0500
Local: Thurs, Feb 11 2010 12:09 am
Subject: Re: [coverstory-discuss:219] 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!"

Pat McGee, j...@XorAndOr.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Feb 11 2010, 12:22 am
From: "Nathan" <natha...@gmail.com>
Date: Wed, 10 Feb 2010 23:22:35 -0600
Local: Thurs, Feb 11 2010 12:22 am
Subject: RE: [coverstory-discuss:221] Re: Step-by-step guide
I was just doing builds


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave MacLachlan  
View profile  
 More options Feb 11 2010, 12:32 am
From: Dave MacLachlan <dmacl...@gmail.com>
Date: Wed, 10 Feb 2010 21:32:30 -0800
Local: Thurs, Feb 11 2010 12:32 am
Subject: Re: [coverstory-discuss:222] Re: Step-by-step guide
You definitely need to run your code to get coverage numbers.

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

On Feb 10, 2010, at 9:22 PM, Nathan wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave MacLachlan  
View profile  
 More options Feb 11 2010, 12:33 am
From: Dave MacLachlan <dmacl...@gmail.com>
Date: Wed, 10 Feb 2010 21:33:27 -0800
Local: Thurs, Feb 11 2010 12:33 am
Subject: Re: [coverstory-discuss:220] 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).

Cheers,
Dave

On Feb 10, 2010, at 9:08 PM, Nathan wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Feb 11 2010, 12:38 am
From: "Nathan" <natha...@gmail.com>
Date: Wed, 10 Feb 2010 23:38:32 -0600
Local: Thurs, Feb 11 2010 12:38 am
Subject: RE: [coverstory-discuss:224] Re: Step-by-step guide
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Van Lenten  
View profile  
 More options Feb 11 2010, 8:25 am
From: Thomas Van Lenten <thoma...@gmail.com>
Date: Thu, 11 Feb 2010 08:25:10 -0500
Local: Thurs, Feb 11 2010 8:25 am
Subject: Re: [coverstory-discuss:225] Re: Step-by-step guide

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Feb 11 2010, 8:48 am
From: Nathan <natha...@gmail.com>
Date: Thu, 11 Feb 2010 07:48:14 -0600
Local: Thurs, Feb 11 2010 8:48 am
Subject: Re: [coverstory-discuss:226] Re: Step-by-step guide

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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Van Lenten  
View profile  
 More options Feb 11 2010, 4:36 pm
From: Thomas Van Lenten <thoma...@gmail.com>
Date: Thu, 11 Feb 2010 16:36:08 -0500
Local: Thurs, Feb 11 2010 4:36 pm
Subject: Re: [coverstory-discuss:227] Re: Step-by-step guide

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Feb 11 2010, 7:32 pm
From: Nathan <natha...@gmail.com>
Date: Thu, 11 Feb 2010 18:32:51 -0600
Local: Thurs, Feb 11 2010 7:32 pm
Subject: Re: [coverstory-discuss:228] Re: Step-by-step guide

Ok...I guessing I have to download the project/source code and make the
change and do a build.  I'll keep you informed.

Thanks for the help and interest so far, I really appreciate it.

On Thu, Feb 11, 2010 at 3:36 PM, Thomas Van Lenten <thoma...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »