Skip to content

Commit

Permalink
Fix some test status messages in the console
Browse files Browse the repository at this point in the history
If testing is resumed after being paused it will say 'starting tests'
even if the tests are not going to run because there are no changes.
  • Loading branch information
stuartwdouglas committed Jul 27, 2021
1 parent fe3319a commit 9feba79
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,21 @@ private void setupPausedConsole() {
consoleContext.reset(new ConsoleCommand('r', "Resume testing", "to resume testing", 500, null, new Runnable() {
@Override
public void run() {
testsStatusOutput.setMessage(BLUE + "Starting tests" + RESET);
if (lastResults == null) {
testsStatusOutput.setMessage(BLUE + "Starting tests" + RESET);
}
TestSupport.instance().get().start();
}
}));
addTestOutput();
}

private void setupFirstRunConsole() {
testsStatusOutput.setMessage(BLUE + "Running tests for the first time" + RESET);
if (lastResults != null) {
resultsOutput.setMessage(lastResults);
} else {
testsStatusOutput.setMessage(BLUE + "Running tests for the first time" + RESET);
}
consoleContext.reset();
addTestOutput();
}
Expand Down

0 comments on commit 9feba79

Please sign in to comment.