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 item doesn't show as busy after setting its busy field #154659
Comments
I think I found an issue that may be related to this issue. I'm trying to keep additional data associated with every TestItem in a weak map like is suggested here: https://code.visualstudio.com/api/extension-guides/testing. When a test is run, I'm adding to the test item and its value to the weak map. In my separate command that's registered in the package.json, I'm trying to get that associated data using the TestItem parameter, but it's not being found. I updated the repository linked above with console.logs to demonstrate this |
Fixes #154659 I think I never just hooked this up
Fixes #154659 I think I never just hooked this up
I ran the example extension, and when I click the squirrel, the test does not show the busy state. Is that what changed? Can you verify it @KaravolisL? |
This bug has been fixed in the latest release of VS Code Insiders! @KaravolisL, you can help us out by commenting If things still don't seem right, please ensure you're on version 2c80125 of Insiders (today's or later - you can use Happy Coding! |
@connor4312 Can you please provides steps to verify this if we don't hear back from @KaravolisL |
@connor4312 This issue is still present in the following version Version: 1.72.0-insider (user setup) Using the example extension linked above, I clicked the squirrel button on the test item and the busy state is still not shown. Additionally, the test item still isn't being retrieved from a WeakMap after it's been added |
Ah, I fixed an issue that setting the I'm not sure this is something we'll fix, but I'll reopen for investigation |
Tested with: Version: 1.73.0-insider (user setup) Everything seems to be working now |
/verified |
Does this issue occur when all extensions are disabled?: Yes
Version: 1.69.0 (user setup)
Commit: 92d25e3
Date: 2022-07-07T05:28:36.503Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.19043
I've created a simple test extension to reproduce this issue. The code is located here: https://github.com/KaravolisL/simple-test-extension. In particular, see https://github.com/KaravolisL/simple-test-extension/blob/0cb1a52d8f4b0fccc34e9b7a7dc8ed0e6308dd24/src/extension.ts#L45.
Inside of a run profile's run handler, I can call
test.busy = true;
and the test will show as busy in the user interface. Callingtest.busy = false;
returns the user interface to its idle state. This is the expected behavior.The unexpected behavior is when I try to do this in a separate command that gets registered in the package.json under "testing/item/context". The call
test.busy = true;
doesn't seem to do anything in this case.The text was updated successfully, but these errors were encountered: