Xcode-beta (7A120f): Code coverage report should be exportable

Originator:me
Number:rdar://21369366 Date Originated:12-Jun-2015 10:35 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A120f)
Classification: Reproducible:Always
 
Summary:
Currently, Xcode generates a .xccoverage file inside a project’s DerivedData folder. This file seems to be a binary plist, which is not very convenient for reading and exporting to another format. There’s also no way to specify its path when running xcodebuild.

Steps to Reproduce:
1) Create a project with some tests.
2) Run the tests with xcodebuild:

xcodebuild test -scheme MyProjectScheme -sdk iphonesimulator

Expected Results:
A more standard file should be generated or a tool to convert to one should be available. Other possible formats are Cobertura XML or even GCOV’s files. The file should also be saved to another location (should be a parameter to xcodebuild or inside the project/scheme configurations).

Actual Results:
A binary plist is generated on a default location.

Regression:
Code coverage was not available prior to Xcode 7, so no regressions here.

Notes:
Not everyone can use Bots as a Continuous Integration environment, so this will make it possible to show code coverage on other tools, such as Jenkins.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!