Defective unit tests always show a successful notification when tested on device in XCode 6 beta swift
Test modules always show a successful start in workplace notification when running on a device in XCode 6 beta 6 in Swift.
How to recreate:
- Create a new Swift-enabled iOS app project.
- Go to an existing test and change it to
XCTAssert(false)
for it to work. - Run tests on the device - the "Test Succeeded" message appears on the screen.
- Run the test on the emulator - it will show the "Test Failed" message.
Update
- When testing on the device, there are test error messages in the output window. But the desktop notification says "Test Succeeded".
- When I test the device and set a breakpoint in the test method, it stops there.
+3
source to share