-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear Terminal Screen When Running In Watch Mode #1623
Comments
The previous run is left visible since you may need to refer back to it while you're debugging test failures. Admittedly the larger the test suite the more confusing this gets. We do try to print a separator so you know where the previous run ended. Most terminals have a shortcut for clearing the screen. I often use this, followed by typing r + Enter which reruns the tests for you. We're open for suggestions on how to improve the separation between the test runs. Or perhaps we should have a "clear and rerun tests" command? |
@novemberborn , Is there a way to run only the changed tests in watch mode so that all tests are not run again ? This could make it comfortable on the console. |
@clemtrek watch mode does that automatically when you modify files. |
Thanks |
Can we reopen this as a feature request? I'd like to have an opt in config to clear the screen between reruns in watch mode. I took a look through the code, and could try a PR but I'm not quite clear on where this kind of behavior would go. Nodemon has an "events" hook option where you can declare aribtrary terminal commands to run on events like
The |
@capttrousers I think the right approach is to improve the reporters, see #2500. |
FEATURE
It would be nice to clear terminal screen while running in watch mode.
A Simple package like clear could be used.
WHY ?
It becomes very disturbing when running tests in watch mode and the terminal gets filled very quickly,
So you have to clear it manually.
The text was updated successfully, but these errors were encountered: