Skip to content

Commit 039f8c9

Browse files
nshahanCommit Queue
authored andcommitted
[ddc] Alert when all hot reload tests were skipped
Add message to output when no tests were run because no tests were found to match the filter. Change-Id: I6dd4abd744dee9514efb02c554764e896365824d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/395049 Reviewed-by: Mark Zhou <[email protected]> Commit-Queue: Nicholas Shahan <[email protected]>
1 parent 0df07b6 commit 039f8c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/dev_compiler/test/hot_reload_suite.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,12 @@ class HotReloadSuiteRunner {
890890
_print('Emitted logs to ${testResultsUri.toFilePath()} '
891891
'and ${testLogsUri.toFilePath()}.');
892892
}
893-
893+
if (testOutcomes.isEmpty) {
894+
print('No tests ran: no sub-directories in ${allTestsUri.toFilePath()} '
895+
'match the provided filter:\n'
896+
'${options.testNameFilter}');
897+
exit(0);
898+
}
894899
// Report failed tests.
895900
var failedTests =
896901
testOutcomes.where((outcome) => !outcome.matchedExpectations);

0 commit comments

Comments
 (0)