-
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
testing tab is not showing all tests collected #23456
Comments
Hi! Thanks so much for the report! What plugins are you using for pytest? Sometimes these are not compatible with our plugin which handles building the test tree for the test explorer view. If you send over the plugins you use and a test which isn't appearing in the sidebar I can give it a try on my machine and see where it is not being interpreted correctly. Thanks! |
@eleanorjboyd Thanks for your reply. This is the list of pytest plugins specified in my requirements.txt file: pytest==6.2.5 If you need the complete requirements.txt, let me know. Thanks in advance. |
With suggestions by @eleanorjboyd, I updated my pytest plugin to latest version and now the test tree is displaying all tests. Thanks a bunch for all your help. |
Great stuff! Thanks for the follow up. Happy coding 🥳 |
Type: Bug
Expected Results:
I should see all 1731 tests in the Testing Tab.
Actual Results:
But in the Testing Tab, it's only showing 5 cases. All these 5 cases are diretcly writing code in the test methods.
![image](https://private-user-images.githubusercontent.com/138430652/332268696-4eace6c4-de48-4823-8514-b97d9fcc9eed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODM4OTUsIm5iZiI6MTczODg4MzU5NSwicGF0aCI6Ii8xMzg0MzA2NTIvMzMyMjY4Njk2LTRlYWNlNmM0LWRlNDgtNDgyMy04NTE0LWI5N2Q5ZmNjOWVlZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQyMzEzMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lOGRkZGE1ZDJkMWE3Y2M3YTljNjdhZThlZTA2YTJjZmVjYTY4ZTZlMzQxMjUyMGE1Njc5NDI5Yjk4NWE3MGJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.59mHSwm9FlldvnOrpJczEpOdcPoMLbXdput6v3qQdNU)
All other cases will read data from a corresponding .yml file into the test code. And they are not showing in the Testing Tab.
![image](https://private-user-images.githubusercontent.com/138430652/332268980-2ca31a79-e795-4868-8d15-f03ebf36cd6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODM4OTUsIm5iZiI6MTczODg4MzU5NSwicGF0aCI6Ii8xMzg0MzA2NTIvMzMyMjY4OTgwLTJjYTMxYTc5LWU3OTUtNDg2OC04ZDE1LWYwM2ViZjM2Y2Q2Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQyMzEzMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMzExZTFiODZiNjMyYTNkZDdmNDExNzMwNDA2ZDE0ZjhlYTJhYTJjNTc4NjgxZjQxZWM2Yjk0YWNhOWZiN2UzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.BNjULbt9_v5_2EpTVn2UdQOhxh_Q2lkMkgbdHStKOzQ)
It was working fine with previous version of VS Code.
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (44)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: