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?

Accepted Reply

Needed to enable code coverage in the scheme

Replies

Needed to enable code coverage in the scheme