mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[StdlibUnittest] Warn if no tests were executed
This commit is contained in:
committed by
Allan Shortlidge
parent
9fd0e92f7b
commit
cb7bc98931
@@ -1608,6 +1608,9 @@ class _ParentProcess {
|
||||
_testSuiteFailedCallback()
|
||||
} else {
|
||||
print("\(testSuite.name): All tests passed")
|
||||
if testSuite._tests.isEmpty {
|
||||
print("WARNING: SUITE '\(testSuite.name)' CONTAINED NO TESTS! NO TESTS WERE EXECUTED!")
|
||||
}
|
||||
}
|
||||
}
|
||||
let (failed: failedOnShutdown, ()) = _shutdownChild()
|
||||
|
||||
Reference in New Issue
Block a user