Normally I would follow these steps. Basically I woult tap on my scheme, then edit, then Test, then I'd have a nice neat enable code coverage box I can tick. However, with 14.3, I don't see the info | options etc tabs, instead I see this view. And enable code coverage isn't there. Usually, it would be between Build configuration and Debugger.
14.3
Old view:
I don't see show code coverage here either:
Enabling Code Coverage has moved to Test Plan configuration which is designed to manage your tests and was introduced in Xcode 11 at WWDC 2019.
Do the following steps to enable it:
Go to the Configuration tab :
Find Code Coverage and enable it :
You can enable it on the test plans configuration. Go to the Test navigator. Click on the "Test Plan" dropdown and then select "Edit test plan"
You will be able to update the shared configs of your test plans, including conde coverage enabling:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With