Failed unit tests always show succeed notification when tested on device in XCode 6 beta swift

Unit tests always show 'succeed' desktop notification when run on device in XCode 6 beta 6 in Swift.

How to recreate:

  • Create new iOS single-view app project with Swift.
  • Go to the existing test and change it to XCTAssert(false) to make it fail.
  • Run the tests on the device - it shows "Test Succeeded" desktop notification.
  • Run the test on the emulator - it shows "Test Failed" notification as it should.

Update

  • There are test error messages in the output window when testing on device. But the desktop notification says "Test Succeeded".
  • When I test on device and set a breakpoint in the test method - it does stop there.

Solution 1:

Run the test on the emulator - it shows "Test Failed" notification as it should.

Copied from the Question, in case someone doesn't realize there is a way to get them to work (although not on device).