-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Icons Not Updating when using pytest #15260
Comments
Hi @aaronsmith1234, Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. If you do end up having a sample project that we could use to reliably repro this issue, along with extra info like which test framework you're using, or your general workspace setup, that would be very useful 🙂 Thank you for your understanding and patience! |
For sure! General workspace settings is minimal; really only saying what test framework I'm using (Pytest) |
Also experiencing the issue, icons don't update from ? when running using pytest. Environment DetailsRunning attached to a container via wsl2 (ubuntu-20.04) Extension version: v2021.4.765268190 Using Remote settings:
|
Does any of you have a sample repo I could use to try and reproduce the issue? Also does it happen every time, or only with specific projects or configurations? |
@kimadeline I've included the docker setup as it was pertinent to my environment. Thanks https://github.com/nigelc-byte88/vscode-pytest-bugsample This is happening every time on this project (the full version) and every project that follows this particular template layout. (i.e. using docker dev container) |
@kimadeline I've had it happen in a variety of projects and configurations, but haven't been able to reliably reproduce 😢Reloading the window always fixes it for me |
@kimadeline - did you manage t repro with @nigelc-byte88's repo? I'm seeing the same here, but not using remote testing: vscode: python extension: 2021.5.2 |
@followben Do you have a sample repo I could use as well? |
Thank you all for your patience! @nigelc-byte88 I sadly couldn't reproduce the issue with repo: I followed these steps:
And the tests were discovered and ran when using Python 3.9.0 and pytest 6.2.4. Are there any steps I am missing? |
Hi @kimadeline - for my case at least (pytest in venv under python 3.8+ running on macOS) it seems to be related to the addition of |
Thanks for checking @kimadeline, we use wsl/docker and use the vscode settings included in the repo here. Which does includes python.testing.Pytest args, so would align with @followben hypothesis. |
This is fixed by #16769 😊 |
Issue Type: Bug
Hi,
While using the built-in Python test tab in VSCode, occasionally the test status icons (green checkmark or red X) get out of sync with the actual test results. As an example, I have tests that were once failing, and are now passing, but the icons still are red X's; when running tests, the icons dont update to be the spinning arrows, and after the tests are done, they are what they were before. At the bottom of the screen, the test status is correct, and inside the test file the test status is correct, its just the test explorer tab.
Note that closing VSCode entirely and re-opening it fixes the problem. I can't reliably reproduce, it just happens sometimes on some projects
Extension version: 2021.1.502429796
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.18363
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: