How do I show code coverage in Swift Packages?

On my M1 mac, using Xcode 13.3, I created a package and displayed the code coverage bar (Editor menu –> Code Coverage).

After running tests, there is no indication of code coverage at all in the source code.

How do I get code coverage when testing a package?

Answered by MegaWatt in 711803022

Needed to enable code coverage in the scheme

Accepted Answer

Needed to enable code coverage in the scheme

How do I show code coverage in Swift Packages?
 
 
Q