views:

208

answers:

1

I want to run some code coverage analysis (using CoverStory) on our iPhone app's unit tests in XCode automatically when the tests run. the problem is that we're using the Google Toolbox for Mac, and the way that the tests seem to run doesn't actually generate code coverage reports from gcov, so the analysis i get is out of date unless i manually regenerate the coverage html after a build and go. I'm wondering if there is any obscure way to trigger a post-debug step that would do this for me so i don't have to manually rerun CoverStory. Is it possible?

Edit: To clarify, i want to have a build step run after the program is done running if possible, not before i start debugging.

+2  A: 
Roger Nolan
Thanks for the response, but i want to ensure that the build step runs after the test application finishes running/debugging, which is not readily apparent to me at the moment.
Kevlar
I've not tested but if you add a run script phase after the script that runs SenTest (or just edit the script that runs SenTest) don't you get the correct behaviour?
Roger Nolan
I was under the impression that the script that runs the unit tests didn't generate the gcov files, but it appears that is the case so this will suffice; thanks!
Kevlar