-
Notifications
You must be signed in to change notification settings - Fork 737
Test don't launch #170
Comments
Running the same thing with xcodebuild worked fine just now. |
i'm getting the same problem. |
Same problem, happens when using XCTest. |
I'm using specta / expecta which is built on top of OCTest. |
We are running into the same issue after upgrading the Xcode 5. command: output:
|
Could you try running your tests again, but with Console.app open? There might be some interesting info in the logs. |
Gladly. Here's the output:
|
@yqiang I just tried to repro your problem, but couldn't. Can you help me out with more info? In one of your tests, could you add ...
... and then run from Xcode and tell me which one you get? otest-shim.dylib is currently i386 only, and I'm wondering if your tests are getting run as x86_64. |
@fpotter |
Seeing the same issue, simulator launches, xctest sits at "running tests...", works fine in XCode 5, iOS simulator 7. xctest seems to be hung but I can start interacting with the app in the simulator manually which xctest is hung. Mucked around with creating a new scheme, still seeing the same issue. Haven't tried a brand new project however. |
@fpotter I also forgot to mention that this project does use cocoapods. |
Seeing exactly the same issue with xctool 0.1.12 and Xcode 5. Using CocoaPods with Specta. Console output below:
xctool hangs at "Launching test host and running tests ...", and the app is launched in the simulator. |
Another bit of information to help you track down the issue. It looks like things are running smoothly once I downgraded to xctool 0.1.11. This may help everyone else on this thread as well :) |
@fpotter
|
same problem here. Xcode 5 (final) |
An easy workaround for this if you still have Xcode 4 laying around (I have mine at /Applications/Xcode4.app) is to set your Xcode command line tools to use the 4.x and then do your development in Xcode 5. This is my current approach for development since Travis CI doesn't have Xcode 5 available yet for CI. To change your tools path from the shell: |
@fpotter seems like CocoaPods is always involved. Could it be an issue related with the changes introduced in 0.7 to resolve implicit dependencies for CocoaPods? |
I'm having a similar problem described in #173 : most of my tests are Kiwi, I only got one OCUnit class. Only the OCUnit tests are run using xctool 0.1.12 no matter if i use SDK 5 or 4. On the other hand, xctool 0.1.11 works fine on both SDK 5 and 4. |
xctool 0.1.12 doesn't seem to work with XCTest framework. I get this: [Info] Collecting info for testables... (1147 ms) It does work when using the SenTestingKit framework. I create a new project (Cocoa Touch Static Library template) with Xcode 5, select the test target, change the wrapper extension from xctest to octest in the Build Settings and replace the linked XCTest.framework with SenTestingKit.framework in Build Phases. (Don't forget to change the tests with the SenTestingKit stuff instead of XCTest). |
@sandervandenbrink v0.1.13 has XCTest support. |
Same issue here, with v0.1.13, just |
Same issue on 0.1.13 |
Tests don't seem to run on 0.1.13 either. |
Kiwi tests in 0.1.13 are broken for me along these lines. |
With a cleanly created project the tests (XCTest) work with 0.1.13 if I don't pass certain build settings. This works for example: But this gives an error: failed: Failed to query the list of test cases in the test bundle: dyld: could not load inserted library: /usr/local/Cellar/xctool/0.1.13/libexec/lib/otest-query-ios-dylib.dylib Not sure if this is merely due to passing a build setting but with xcodebuild it does work. |
Same problem as many above:
Xcode 5.0 (5A1412) |
Sorry guys! I was out for the past couple weeks for wedding + honeymoon, and I'm picking this back up now. Looks like it's not affecting everyone - FB's stuff is still working alright. @sandervandenbrink has found a good repro, so I'll start there. |
@sandervandenbrink #200 fixes the repro case you found (re: ONLY_ACTIVE_ARCH=NO), but there might still be more to the problem. @vyacheslavartemev, @paulyoung, @zdavison, @SlaunchaMan, @brow Have any of you seen this repro for a project on GitHub? I'm trying to find more repro cases for this. |
@fpotter Here's a repro. https://github.com/brow/XctoolFailureExample It's not affected by the fix in #200. |
OK - I've identified a few specific problems that can cause tests not to launch. Let's close out this issue and open new ones to track the specific problems. @brow Thanks for putting up that example, but it passed for me using xctool 0.1.13 :-/ See https://gist.github.com/fpotter/6939128 I need to figure out what's different between your setup and mine. Here are the specific issues... xctool can't run tests using Kiwi or Specta -- #202 xctool fails to query the list of test cases when building w/ ONLY_ACTIVE_ARCH=NO -- #203 xctool cannot run tests against the "iPhone Retina (4-inch 64-bit)" simulator -- #204 xctool should use the -destination argument to start the right simulator -- #205 |
Is there a separate issue now for the original issue described, where the simulator sits and hangs on
I'm running Kiwi tests (OCTest, not XCTest) with Xcode 5.0 (also confirmed with 5.0.2). If I re-install v0.1.11 it works fine, but in v0.1.12 it hangs on the "launching test host" line Thanks, and let me know if I can help! |
@brow great, thanks! |
I'm trying to run my tests using
xctool -workspace Karma.xcworkspace -scheme Karma -sdk iphonesimulator test
Everything builds fine but then the run-tests phase hangs on “Launching test host and running tests…”Log of the run test phase:
The app actually launches in the simulator but then just sits there. I'm using Xcode 5 and building for iOS7.
The text was updated successfully, but these errors were encountered: