Alex Stone
Alex Stone

Reputation: 47364

OCMockito XCTest does not refresh tests when changes are made and tested

I'm running into an issue where my iOS unit tests correctly execute the first time I run them on the device, but refuse to acknowledge any changes made after the initial run on either the device or simulator. If I uninstall the app and clean the project in xCode, then test again, the changes are visible. What could be the simulator to ignore changes to tests and give me old results back?

Below is an example of what I'm seeing - notice how uncommenting the XCTFail does nothing when the test is ran on the simulator again.

enter image description here

Running again with fail uncommented, the test should fail, but it does not recognize the change:

enter image description here

Upvotes: 1

Views: 114

Answers (0)

Related Questions