xcode5 - XCTest did not finish in Xcode 5 -


i have 1 test class , 1 test case. when run unit test, xcode tells me of tests passed, have warning tests didn't finish.

do have special xctest let know i'm done particular test case?

update: may timing issue/bug. put [nsthread sleepfortimeinterval:.1]; in teardown method , works every time. xcode finished tests fine periodically on own without sleep.

update 2: looks odd xcode bug, added third test doing text formatting validation , warning shows again.

test failure image

i never got warning mention, after converting xcode 5 xctest (with refactoring menu , swapping framework myself) tests ran forever (for value of forever...) never began executing (setup , test methods not called @ all).

i changed test target's, build settings > packaging > wrapper extension "octest" "xctest" , problem resolved.

wrapper extension setting existing , new value

to answer question, test should finish execution finishes , teardown method completes. test no code pass successfully. try setting breakpoint or log message inside test verify being called , make sure teardown not hanging reason.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -