-
Notifications
You must be signed in to change notification settings - Fork 8
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
Test results aren't updated when tests are run in the debugger #60
Comments
Just tried this here in my example code:
So maybe it is only in a debugger? |
Correct, only in a debugger. As far as I can tell from the code, the plugin doesn't try to capture the output of the debugger or convert it into test adapter events at all. |
I'm not actually sure it's possible to capture or spy on the output from a debugging session. I'm digging around the docs now. |
I don't see any API that fits the bill. I'm a little confused by If I got a |
Hmm yes I see. The problem would be that your debugger "swallows" the output information so we can't get them out.
|
The Test Adapter documentation makes frequent mention of a "RetireEvent" which can be used to mark a test result as "outdated". I don't know what that looks like in the UI. Might that be a path to victory here? |
That is the old test adapter. When I started this project, I forked from the test explorer api repo and build on top of that. Since then a lot changed and VSCode has it's own test explorer API. I still use the old one which wraps the native implementation because I didn't want to rewrite everything. |
I read through the new documentation and found that they have a completely different approach on how to handle states. They have a dedicated debug, run, coverage etc. profile which you execute and the result state will be handled by the UI then. sooo, I think finally porting it to the new API might solve our little problem here. |
Steps to reproduce:
Expected result: The status icon to the left of the test name changes from a red "X" to a green check mark, or vice versa
Actual result: The status icon stays the same, until the ▶ ("Run tests") button is pressed to run the test outside of the debugger
The text was updated successfully, but these errors were encountered: