Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. XcodeCoverage

XcodeCoverage

MITPerlv1.4.0

Generate code coverage reports for Objective-C Xcode projects with HTML and Cobertura XML output.

GitHubGitHub
855 stars304 forks0 contributors

What is XcodeCoverage?

XcodeCoverage is a tool that generates code coverage reports for Objective-C projects in Xcode. It instruments your code to measure which parts are exercised by unit tests and produces HTML and Cobertura XML reports. The tool helps developers identify untested code areas while excluding Apple SDKs and allowing custom file exclusions.

Target Audience

Objective-C developers working on iOS or macOS projects in Xcode who need to measure and report on their unit test coverage. It's particularly useful for teams requiring coverage metrics for quality assurance or compliance purposes.

Value Proposition

Developers choose XcodeCoverage because it provides a simple, integrated solution specifically for Objective-C coverage that works natively with Xcode's build system. Unlike generic coverage tools, it handles Xcode project structure and offers customizable exclusions while generating both human-readable and machine-processable reports.

Overview

Code coverage for Xcode projects (Objective-C only)

Use Cases

Best For

  • Measuring Objective-C code coverage in Xcode projects
  • Generating HTML coverage reports for team review
  • Producing Cobertura XML for CI/CD pipeline integration
  • Excluding third-party libraries from coverage metrics
  • Automating coverage reporting after unit test runs
  • Objective-C projects that cannot use Swift coverage tools

Not Ideal For

  • Swift projects or mixed Objective-C/Swift codebases requiring coverage for Swift code
  • Teams wanting fully GUI-integrated coverage tools within Xcode without terminal usage
  • Projects using Swift Package Manager where CocoaPods integration is not feasible

Pros & Cons

Pros

Objective-C Specific Integration

Tailored for Objective-C in Xcode, with seamless integration into build settings and schemes, as shown by the included xcconfig file and support for post-action scripts in the README.

Dual Report Formats

Generates both HTML reports for human review and Cobertura XML for CI/CD pipelines, providing flexibility in how coverage data is consumed and reported.

Customizable File Exclusions

Allows exclusion of specific files and directories via an .xcodecoverageignore file, enabling teams to ignore third-party libraries or generated code, as detailed in the README with examples.

Xcode Workflow Automation

Supports automation through Xcode scheme post-actions, allowing coverage reports to be generated automatically after unit test runs, simplifying the workflow for developers.

Cons

No Swift Support

Explicitly stated in the README that Swift coverage is not supported, making it unsuitable for modern projects that include Swift code and limiting its relevance in current iOS/macOS development.

Manual Configuration Burden

Requires adding run scripts to build phases, configuring xcconfig files, and ensuring correct target selection, which can be complex and error-prone, as highlighted in the installation warnings.

CocoaPods Integration Caveats

When installed via CocoaPods, files are not visible in Xcode and script modifications may be overwritten on updates, reducing flexibility and control, as noted in the README.

Frequently Asked Questions

Quick Stats

Stars855
Forks304
Contributors0
Open Issues1
Last commit3 years ago
CreatedSince 2012

Tags

#macos-development#lcov#unit-testing#objective-c#coverage#testing#code-coverage#ios-development#cobertura#xcode

Built With

B
Bash
C
CocoaPods
L
LCOV

Included in

iOS51.7k
Auto-fetched 2 hours ago

Related Projects

QuickQuick

The Swift (and Objective-C) testing framework.

Stars9,831
Forks895
Last commit1 month ago
OHHTTPStubsOHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

Stars5,071
Forks597
Last commit2 years ago
NimbleNimble

A Matcher Framework for Swift and Objective-C

Stars4,838
Forks609
Last commit2 months ago
KiwiKiwi

Simple BDD for iOS

Stars4,120
Forks502
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub