luzhao / coverstory

Automatically exported from code.google.com/p/coverstory
Apache License 2.0
0 stars 0 forks source link

Significant progress with Coverstory #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey guys.  I really appreciate the help and patience.  As you can tell, I 
temporarily abandoned trying to learn/use Coverstory.  But thankfully it 
was a rainy day that kept me inside and I decided to learn how to figure 
this out.

I think I made significant progress.

Here are some notes of what I did and what I'm still trying to overcome.

First of all...my projects...I like to isolate business logic/rules in a 
separate library.  So a ton of my code is in a static library project.  
Well, initially when I would link to -lgcov, it was throwing an error.  So 
luckily I found in a forum that I had to add /usr/lib/gcc/powerpc-apple-
darwin8/4.0.0 to the target's Library Search Path.  Naturally, I don't have 
this directory...so I downloaded that TigerGcov file and I pointed to that 
location.

Second, I have no idea what happened here but my RunIPhoneUnitTest.sh file 
was only like 8 or 9 lines.  Checking the file on google-toolbox-for-mac it 
is significantly different.  So I downloaded that file and updated it.  

As for the apple script.  When I run the script for it to enable code 
coverage...it works fine but it doesn't set the linker flag.  I have to go 
into each target and do that manually.  Speaking of individual targets....I 
can only get this to work if I run that apple script on every target.  Is 
that the way it's supposed to be?

After I build and debug the program...the files are finally created!  
However, I have to open each individual file one by one.  Whether I'm using 
the plug-in or just opening cover story directly....I have to open the gdca 
files individually.  I can see this being a nuisance in the future.

In my target with the unit tests, I have to use GCC 4.0.  And my static 
library, I can use either 4.2 or 4.0.  When I look at the files in 
Coverstory..I still get the 400A, prefer 402 messages.  Since I downloaded 
Tiger lgcov....is there a "newer version"?  BTW, I need to get the newer 
version of the plug-in.  Right now, I have 10.0.3 I think it is.

So aside from that...I finally look like I'm on the pace to make decent 
software that was tested correctly.  My outstanding issues are:

1.  Do I need to execute the apple script against every target?  (For 
example, my first iPhone app.  There are 4 targets.  The UI, the business 
library, Unit Test, Other Unit Tests)   
2.  How do I eradicate the 4.0 error/warning.  I'm assuming I need to 
be using 4.2 since that's the latest.
3.  How do I make Coverstory open all gcda files instead of each one 
individually.  (I tried navigating to the build directory or the parent 
directory with all the files, yet it still gives me an error message saying 
"The document "build" could not be opened.  CoverStory cannot open files of 
this type"

I really appreciate everyone's time and help in this.

Original issue reported on code.google.com by Natha...@gmail.com on 19 Apr 2010 at 3:42

GoogleCodeExporter commented 9 years ago
If you have individual bug report, please open an issue for each one.  But for 
the general discussion/questions, 
please use the google group like I suggested in email.

Original comment by thoma...@gmail.com on 19 Apr 2010 at 11:06