gotestsum icon indicating copy to clipboard operation
gotestsum copied to clipboard

Feature request: `--clear`

Open mawkler opened this issue 9 months ago • 1 comments

Thanks for making an awesome tool! Have you considered adding a flag like --clear that could be used together with --watch that clears the screen before printing the new test output?

mawkler avatar Apr 16 '25 09:04 mawkler

Thanks for the feature request! I haven't had a need for this myself. I use --format testname with --watch so the output is very often more than a single screen.

That said, I think this is a reasonable thing to add! The flag should probably be --watch-clear , so that it groups together with any other watch flags. This is a pattern used in gotestsum where the flags are prefixed with the particular feature that it modifies.

If someone is interested in implementing this I can review the PR.

dnephin avatar May 06 '25 03:05 dnephin