[StdlibUnittest] Warn if no tests were executed

This commit is contained in:
Konrad 'ktoso' Malawski
2025-07-02 19:38:50 +09:00
committed by Allan Shortlidge
parent 9fd0e92f7b
commit cb7bc98931

View File

@@ -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()