-
Notifications
You must be signed in to change notification settings - Fork 294
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 test results on test execution? #1060
Comments
This is controlled by vscode testing subsystem, cc @connor4312 for insight. |
We could have a setting for this; if more users request it we could go that direction. An extension could also manually run the |
@connor4312 good point, we can try One potential issue though: In a multi-root workspace environment, this will mean one run from a given folder will clear out the output from other folders... is there a way to close out the output associated with the specific controllers? |
That's right--unfortunately no command to clear a specific controller's output. |
Having it hidden behind some settings would be great :) Personally I don't really care about history of test runs - in my workflow, I don't really remember what exactly was different (either in application code or test code) in previous test executions so seeing different results brings zero value |
Yea, I think some |
@connor4312 Challenge accepted :) I have the changes ready (I hope) - will do some more testing and prepare PR today :) |
sounds good 🙂 |
@connor4312 Here's the PR #1071 , hopefully somewhat meaningful - as stated in the PR's description, I did not bumped version in package.json and I kind of "guessed" the version in README.md file - not sure how to do it better? Thank you |
Oh, sorry. I was speaking to the VS Code side of things; I'm not a maintainer of the Jest extension. @connectdotz can weigh in on that PR. Code pointers for VS code if you opt to contribute there:
|
No worries and sorry for the misunderstanding. I somehow managed to make the changes (unless proven otherwise in PR :)) |
@connor4312 after playing with |
reopen this issue to remind us when a better clear test-results panel command becomes available. |
The state of items is intrinsically linked to the history: the state of any given item is that of its most recent test run. There is not a way to keep states but remove the history, or vise versa. |
Environment
vscode-jest version
: 6.0.1node -v
: 14.17.0npm -v
oryarn --version
: yarn 1.22.19npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): [fill]Would it be possible to clear previous test results (or make it configurable) when I start new test execution? What I mean is the right column in TEST RESULTS bottom panel. I'd find it much easier to use if the content of the history would be cleared anytime I trigger some tests. So essentially the desired state is to have history of size 1, aka latest test run only
The text was updated successfully, but these errors were encountered: