Xcode/Swift: No code coverage support for Swift classes

Originator:thedov
Number:rdar://20439390 Date Originated:06-Apr-2015 05:29 PM
Status:Closed Resolved:Duplicate of 18927231
Product:Developer Tools Product Version:Xcode-beta (6D554n)
Classification:Enhancement Reproducible:Always
 
Summary:
When unit tests run, calling out to Swift classes, no GCDA or GCNO files are produced

Steps to Reproduce:
1. Open the attached sample project
2. Run unit tests
3. Open a Finder window for Build/Intermediates/SwiftCodeCoverage.build/Debug/SwiftCodeCoverageTests.build/Objects-normal/x86_64/

Expected Results:
You should see ObjcCClass.gcda, ObjCClass.gcno, SwiftClass.gcda, and SwiftClass.gcno files

Actual Results:
Only the ObjCClass coverage files are there, with neither of the SwiftClass files present

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!