ios – How do I debug why xcode will not run my unit assessments?

I just lately began engaged on an outdated ios app which does not have unit assessments. I’m not an ios developer myself. Resulting from circumstances I really feel compelled to begin writing unit assessments.

App has a number of dependencies added utilizing cocoapods. One among them is a framework which we keep ourselves.

I’m attempting to run the dummy testExample that’s auto-generated whereas making a undertaking. It would not have any code.
Once I run the check xcode builds & installs the app. App reveals the splash display. However after that nothing occurs.
I additionally tried working the check from command line in case it might print any errors. However it reveals
Testing began for configuration 'Configuration 1'
and stops.

I’ve tried all of the cures I may discover on stackoverflow and apple’s discussion board. Typical ios undertaking troubleshooting like deleting folders, and many others. have additionally been tried. I’m fully caught with none error message.

I attempted working the dummy check in a newly created undertaking on the identical xcode & machine and it ran.

How can I debug this situation? Is one thing within the app code stopping the unit assessments from working. How can I guarantee that all the correct checkboxes are checked and the construct configs all right? Is there a complete checklist someplace of steps required to arrange unit testing?

Xcode model – 13.4.1 Take a look at machine – iphone 11, ios model 15.6

Leave a Reply

Your email address will not be published.