I know that similar questions have been published, but from my investigation the decision was not published, at least not one that works. I only successfully run user interface tests from sample projects in both Swift and Obj-C.
I am trying (unsuccessfully) to integrate UI tests into an existing XCode Obj-C project, which seems to be another issue. Here are the steps I took:
- Created a new UI testing goal in my project
- Make sure Enable Health Check is set to YES for the target I'm testing.
- A cleaned, cleaned up build folder, a rebuilt application, a restarted Xcode, and everything else I could think of.
When I do this, the test object is available, but the record button is inaccessible (disabled), and there are no play buttons in the gutter to run the tests. There is nothing visual in the test class indicating that it is a test class. When I place the cursor in the test method, the record button remains disabled.
Is there something I forgot? Anything else to check that might hinder user interface testing? Thanks!
source share