All steps apply in both test project and test case static library:
1. Check "Instrument Program Flow" in build tab.
2. Check "Generate Test Coverage Files" in build tab.
3. add -lgcov
to the "Other Linker Flags" build setting in your Coverage configuration
4. if target is static library, add /usr/lib/gcc/powerpc-apple-darwinxxx/xxx(according to your version) to the target's Library Search Path.