swift - Xcode 6.3.2 runs all the tests instead of just the one I selected (KIF) -


this question similar to: xcode run tests (even disabled ones)

but different in i'm not disabling tests. i'm pressing single test icon next test function or test case:

xcode 6.3.2 runs tests instead of 1 selected kif

a friend of mine running kif in swift project , has no problem this. i'm guessing it's setup:

i have main xcworkspace file contains main target, unit tests target, , automated tests target (which contains kif tests). workspace has pods project, using frameworks. that's it. here's scheme setup:

scheme config 1

scheme config 2

i've experienced issue in released versions of xcode 6.

edit

i found workaround time being.

you have modify each of test classes (white space changes fine). trigger xcode index files , recognize tests , test cases , generate symbols & icons them in test navigator. (it's recommended delete derived data first remove "ghost tests".)

if don't each test case class, unrecognized test case classes run, if select 1 test run.

once force xcode recognize test classes, can run single test. (or single test case, if choose instead.)

i noticed while trying fix issue symbols , indexing default unittests target works fine. there's wrong either a) having second test target or b) second test target meta info corrupt or c) set second test target incorrectly.

the test icon next class not single test.

unlike method test icon (which tests itself), class test icon runs tests in test class.

delete project's derived data. can closing project, opening window->projects, selecting project. click delete button right of derived data path.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -