Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Jul 16, 2024
1 parent 1c8fddf commit 409d413
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2529,14 +2529,15 @@ private void printDevModeMessages(boolean inputUnavailable, boolean startup) thr

private void printTestsMessage(boolean formatForAttention) {
// setting skipTests to true overrides the setting of hotTests, and prevents any tests from running in dev mode (automatically or on demand)
if (!skipTests) {
if (hotTests) {
String message = "Tests will run automatically when changes are detected. You can also press the Enter key to run tests on demand.";
info(formatForAttention ? formatAttentionMessage("Enter - " + message) : message);
} else {
String message = "run tests on demand, press Enter.";
info(formatForAttention ? formatAttentionMessage("Enter - " + message) : "To " + message);
}
if (skipTests) {
return;
}
if (hotTests) {
String message = "Tests will run automatically when changes are detected. You can also press the Enter key to run tests on demand.";
info(formatForAttention ? formatAttentionMessage("Enter - " + message) : message);
} else {
String message = "run tests on demand, press Enter.";
info(formatForAttention ? formatAttentionMessage("Enter - " + message) : "To " + message);
}
}

Expand Down

0 comments on commit 409d413

Please sign in to comment.