GenerateTestCoverageFor_iOS7 1.0.0

GenerateTestCoverageFor_iOS7 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • tokorom

Support to get the test coverage in iOS7.

Usage

Add to GenerateTestCoverageFor_iOS7 subdirectory to your project

and change your build settings.

  • Instrument Program Flow: Yes
  • Generate Test Coverage Files: Yes

Advanced Usage

CUI test command sample

xcodebuild test \
    -scheme Tests \
    -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0" \
    GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES \
    GCC_GENERATE_TEST_COVERAGE_FILES=YES

Send to Coverstory

xcodebuild test \
    -scheme Tests \
    -destination "name=iPhone Retina (4-inch 64-bit),OS=7.0" \
    OBJROOT=tmp \
    GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES \
    GCC_GENERATE_TEST_COVERAGE_FILES=YES

/Applications/CoverStory.app/Contents/MacOS/CoverStory tmp

When you don't want to call __gcov_flush()

#define UNUSE_GCOV_FLUSH //< -DUNUSE_GCOV_FLUSH

But USE_GCOV_FLUSH takes precedence over UNUSE_GCOV_FLUSH.

Setup

Install manually

Add GenerateTestCoverageFor_iOS7 subdirectory to your project.