Xcode Unit Tests Always Succeed
| Originator: | SlaunchaMan | ||
| Number: | rdar://12242936 | Date Originated: | 05-Sep-2012 09:09 PM |
| Status: | Duplicate/10096504/Closed | Resolved: | |
| Product: | iPhone SDK | Product Version: | Xcode 4.4.1 |
| Classification: | Serious Bug | Reproducible: | Always |
05-Sep-2012 09:09 PM Jeffrey Kelley:
Summary: Unit testing a static library iOS project, no matter what the tests do, always reports “Test Succeeded.”
Steps to Reproduce:
1. Create an iOS static library project with unit tests.
2. Press Command+U to run the tests.
Expected Results: The tests will fail with the default test from the Xcode template:
- (void)testExample
{
STFail(@"Unit tests are not implemented yet in AmazeKitTests");
}
Actual Results: The overlay displays “Test Succeeded”
Regression: Unknown
Notes: Sample project and video demonstration attached.
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!
Having the same problem + multiple test did not finish issue
I have the same problem plus the multiple test (randomly) did not finish issue as posted in http://stackoverflow.com/questions/12308297/some-of-my-unit-tests-tests-are-not-finishing-in-xcode-4-4/12386018#12386018