Files
swift-mirror/validation-test/StdlibUnittest/ForgotToRunTests.swift
2016-08-10 23:52:02 -07:00

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