[Swift] Provide test coverage reports for Swift code

Number:rdar://17450338 Date Originated:
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.0.1
Classification: Reproducible:Always
This is available in Xcode as `Generate Test Coverage Files` in your targets settings. This doesn't apply to Swift currently.

Steps to Reproduce:
1) Enable ` `Generate Test Coverage Files`` in your target
2) Write Swift code

Expected Results:
To get coverage files for my Swift code

Actual Results:
There were no coverage files for the swift code.


Number Status Originator Product Title
rdar://18969738 Duplicate/17450338 josh Developer Tools [Swift] Provide test coverage reports for Swift code



Even i recommend this feature or enhancement. Any coverage data will Swift that can be generated from Xcode itself will provide better view of the s/w quality & would be critical for Product release teams to adopt the tool

Since my project is in swift, I need it very badly.Please fix and update on same as soon as possible

By shrutis826 at Jan. 4, 2016, 11:37 a.m. (reply...)


+1. Any serious adoption of Swift is hindered by this omission.


Would love to see this for use in CI

By wilkinson.kaden at Sept. 25, 2015, 5:57 p.m. (reply...)


Can you please implement it ?


Come on Apple, if you want us to use Swift give us comparable tools!

By Spencevail at Aug. 25, 2015, 12:31 a.m. (reply...)

+1 We need this!!!

By dvelasquez at Aug. 24, 2015, 11:42 p.m. (reply...)


We need this :-)


By alex.maiereanu at June 20, 2015, 10:58 p.m. (reply...)

Is this issue fixed in Xcode 7 beta?

By Kyan.ql.He at June 13, 2015, 5:48 a.m. (reply...)


It would be great to see a coverage report for my Swift project. I think it is fully tested. However, without a coverage report, I can not say for sure.

By Nicholas.TD07 at June 4, 2015, 1:13 a.m. (reply...)


Any serious development platform hás code coverage report Are you crazy? Release a new platform to substitute objective-c but without basic features

By lobinhojr at May 26, 2015, 2:30 p.m. (reply...)



Any updates on this issue? Opened: 20820928

By dilip.ajm at May 5, 2015, 5:56 p.m. (reply...)


Opened 20778655

By oshea.ie at May 1, 2015, 4:20 p.m. (reply...)


Would be great to get this sorted.

By oshea.ie at May 1, 2015, 4:15 p.m. (reply...)


It's a important feature to improve code quality, is there any update on this?

By Kyan.ql.He at April 26, 2015, 4:38 p.m. (reply...)


Its like Apple doesn't believe in testing.


Critical feature.

By jasper.reloaded at April 3, 2015, 2:54 a.m. (reply...)

+ 1

Also, commenters please make a dup radar at bugreport.apple.com in addition to commenting.

+1 Yes, please fix this bug! My workgroup can't use Swift until we can do code coverage.

Yes, please fix this bug! My workgroup can't use Swift until we can do code coverage.

By daveatmint at March 19, 2015, 6 a.m. (reply...)

Critical issue for CI

Code coverage is a very important metric that determines the stability of our applications. Please fix this as soon as possible!

By majorent21 at Jan. 31, 2015, 1:06 a.m. (reply...)

+1 any update on this?


Can you please fix this?

By joshwoodcock at Jan. 25, 2015, 7:42 p.m. (reply...)

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!