Index: pkg/unittest/lib/src/config.dart |
diff --git a/pkg/unittest/lib/src/config.dart b/pkg/unittest/lib/src/config.dart |
index b26bdce22a8634aa170fcdeae3d3eb89676e8a28..c77019b0cf62ee40b045f9d66f2af5af46f47235 100644 |
--- a/pkg/unittest/lib/src/config.dart |
+++ b/pkg/unittest/lib/src/config.dart |
@@ -114,7 +114,7 @@ class Configuration { |
print(''); |
var success = false; |
- if (passed == 0 && failed == 0 && errors == 0) { |
+ if (passed == 0 && failed == 0 && errors == 0 && uncaughtError == null) { |
print('No tests found.'); |
// This is considered a failure too. |
} else if (failed == 0 && errors == 0 && uncaughtError == null) { |