xcodebuild 4.2 can't run full application tests in simulator
| Originator: | antonio.malara | ||
| Number: | rdar://10431787 | Date Originated: | 11.11.11 |
| Status: | Open | Resolved: | |
| Product: | DeveloperTools | Product Version: | 4D199 |
| Classification: | Serious Bug | Reproducible: | Always |
11-Nov-2011 11:03 AM Antonio Malara: 'prova.zip' was successfully uploaded 11-Nov-2011 11:03 AM Antonio Malara: Summary: Using xcodebuild to run an OCUnit Application Test Suite does not work, but when using Xcode UI, it works seamlessly. Currently we're working in integrating our test suites in our continuous integration tool, and we feel this a real limiting aspect of xcodebuild. Steps to Reproduce: 1. Open Xcode, create a blank iphone project, or use the one attached. 2. Press Cmd-U 3. The application runs in simulator, and the test suite is executed 4. Close Xcode 5. Open a terminal session in the project directory 6. Build the test target with a command akin to this: Yuko:prova willy$ xcodebuild -target provaTests -sdk iphonesimulator5.0 7. Note that, even if the build succeed, the tests do not start, with the error: /Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/Tools/RunPlatformUnitTests:95: warning: Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set). which is simply not true (step 3) Expected Results: xcodebuild should run a simulator session running the application tests, OR provide a different action for running them. Actual Results: Build succeeds without running the test suite.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!