Skip to content
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 icon is missing in the sidebar #23

Open
Ledvis opened this issue Nov 3, 2021 · 8 comments
Open

Test icon is missing in the sidebar #23

Ledvis opened this issue Nov 3, 2021 · 8 comments

Comments

@Ledvis
Copy link

Ledvis commented Nov 3, 2021

My setup

Version: 1.61.2
Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643
Date: 2021-10-19T15:03:09.437Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin arm64 21.1.0

Case 1.
When "testExplorer.useNativeTesting": true; the Test UI tab is not available at all with only Test Adapter Converter and Test Explorer UI extensions installed
image

Case 2.
However, when I additionally installed Jest Test Explorer it shows the Test UI tab but can't find any tests and asks to install test extension.

image
image

Case 3.
When "testExplorer.useNativeTesting": false; and all three extensions installed everything works except for native Test UI.

image

Please clarify what's wrong with my setup. Thanks in advance.

@connor4312
Copy link
Member

Please share an example repo where this happens

@Ledvis
Copy link
Author

Ledvis commented Nov 4, 2021

Double checked in my other public repo - the same result.
Here is the example repo

@connor4312
Copy link
Member

This works for me:

image

@Ledvis
Copy link
Author

Ledvis commented Nov 4, 2021

Disabled all extensions except tests related - doesn't help.
Can it be node version-related? I have 16.10.0
Do you only have testExplorer.useNativeTesting: true for testExplorer config?
Can you please share your vscode config file?

image

@hbenl
Copy link
Contributor

hbenl commented Nov 4, 2021

I think this happens because some Test Adapters are only activated when the test view is selected, but when you use native testing, the test view only becomes visible when some tests have been registered, creating a chicken-and-egg problem.
See also microsoft/vscode#132395

@connor4312
Copy link
Member

In this case the test extension in the original comment's screenshot (#23 (comment)) activates on *, so that should not be an issue here. There's also the "history" icon on the extension which indicates its activation time.

@Ledvis
Copy link
Author

Ledvis commented Nov 5, 2021

@connor4312 can you please give me a hint in which direction to debug that issue if it intended to work due to my screenshot?

@connor4312
Copy link
Member

Not really sure what's going on here. But you could also try vscode-jest which is the significantly more widely-supported and adopted extension for Jest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants