Question

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.

Was it helpful?

Solution

Yes, you can easily add build steps.

In the targets folder, select your target and then right click -> Add | New build phase | New run script phase..."

You can type any shell commands into the resulting script phase by doubleclicking on it. This is how the Unit Tests are run.

alt text http://img178.imageshack.us/img178/9718/addbuildphase.png

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top