Matt Rajca

blog projects github twitter email

Introducing Xcoverage for Mac OS X

January 25, 2013

Xcoverage for Mac OS X is a new pet project of mine. It lets developers easily visualize code coverage reports in a beautiful and modern native Mac application.


Getting started with Xcoverage is easy. To load a folder of gcov-generated code coverage files, simply drag it onto Xcoverage's icon. A new workspace will open with source files ordered by percent coverage in ascending order. Selecting a file will render it in the viewer on the right. Regions of red indicate unexecuted code paths, and you can use the arrow keys to cycle through them. Xcoverage helps you quickly pinpoint areas of your codebase in greatest need of unit tests.

Xcoverage also plays well with Xcode. In Xcode, you can create a Build Phase that will open Xcoverage and display beautifully-formatted coverage reports each time you run your targets or their unit tests. And with Notification Center support, you will be notified of coverage changes even while Xcoverage is hidden in the background. Xcoverage makes iterating on unit tests quick and easy.

Filters help keep your workspace clean by letting you exclude groups of irrelevant source files. Files can also be excluded on a case-by-case basis; simply right-click on the file you wish to exclude in the source list and select 'Exclude'. Last but not least, you can export a summary of your coverage reports in HTML to share with your co-workers.

Xcoverage is now available free of charge as a Developer Preview. If you have any comments or feedback, please send an email.