mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
478 B
Swift
24 lines
478 B
Swift
// RUN: %target-run-simple-swift 2>&1 | %FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
import StdlibUnittest
|
|
|
|
|
|
_setTestSuiteFailedCallback() { print("hooray") }
|
|
|
|
//
|
|
// Test that harness aborts when no tests are run.
|
|
//
|
|
|
|
var ForgotToRunTestsTestSuite = TestSuite("ForgotToRunTests")
|
|
|
|
ForgotToRunTestsTestSuite.test("Don'tRunThis") {
|
|
expectUnreachable()
|
|
}
|
|
|
|
// runAllTests() deliberately not called.
|
|
// runNoTests() deliberately not called.
|
|
|
|
// CHECK: Ran no tests
|
|
// CHECK: hooray
|