Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5 -- Test target did not finish

Since earlier today, I cannot get my tests to pass when running them from Xcode 5. I know all the tests are passing, because I can run them from command line (well, a CI Job) and they're all passing there.

Have I accidentally changed some project setting or something to cause this? I can't figure out any way to get back to a good state -- I've tried dropping back several versions in our Git history, so I know it's not a code change...

Edit: After uninstalling and re-installing the application, all of the tests are running to completion, but my question still remains -- How did it get to this state?

like image 898
shortstuffsushi Avatar asked Sep 24 '13 21:09

shortstuffsushi


3 Answers

Without receiving a better answer after a couple weeks, I'm going to answer my own question with the solution that seems to have worked for me.

A simple uninstall/reinstall from the simulator seems to fix the problem, though I've yet to determine what causes it, or why this fixes it.

like image 147
shortstuffsushi Avatar answered Nov 10 '22 10:11

shortstuffsushi


I also had this issue. For me, the change that fixed it was to convert the Wrapper Extension in Build Settings from octest to xctest, as @owenfi answered here: XCTest did not finish in Xcode 5

like image 23
tracy Avatar answered Nov 10 '22 08:11

tracy


I was having the same problem, in my case the problem arised after creating multiple targets/renaming targets.

To solve it, I had to select the test target in the 'target browser'(whatever the name is for that), then on the 'General' tab there is a single dropdown box labeled 'target'. Mine was set to 'none', which caused nothing to be tested. I had to re-set it to one of my valid targets for the tests to run.

like image 29
JP Hribovsek Avatar answered Nov 10 '22 08:11

JP Hribovsek