-
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
Rewrite testing adapter #17242
Comments
It would be nice if other python testing frameworks such as behave (a BDD framework) https://behave.readthedocs.io/en/stable/index.html were supported by the testing adapter. |
Hi @Bilalh, support for |
Hello everyone! We are wrapping up the rewrite of the testing infrastructure and heading into the stage of testing issues and seeing which ones remain. Currently, we are rolling out this new infrastructure in parallel and users can try out the new changes by setting "python.experiments.optInto": ["pythonTestAdapter"] in their user I will be triaging our backlog of testing issues and determining which issues still exist. In the meantime, if you have an issue that was waiting on the rewrite to potentially be fixed now is a great time to test it! If you do give it a try, please update the specific issue with the outcome (success or how it is still failing) so I can more quickly determine the ongoing issues following the rewrite. Thanks everyone for your interest and patience as we get this rolled out! |
@eleanorjboyd I have enabled the pythonTestAdapter. I still see that the startup time is very long. I use unittest. When I run a single unit test stuff related to tests elsewhere (e.g. other folders) is initialized. Example: I run a straightforward test that tests some simple string gymnastics. Before the test starts I see in the output terminal that e.g. Pytorch is imported which takes a long time. Please let me know if I can help in any way debugging this :-) |
Hi @JensMadsen! Could you open a new issue and include some of these logs? From there I can help you out a bit more- thanks! |
@eleanorjboyd I will do that but I am unsure what logs you refer to. |
If you go to the command palette and look for the command- |
@eleanorjboyd done #24022 |
Apparently vscode complains about not being able to activate the experimental feature when configuring at folder level.... and guess what, most people use multi-root workspaces.
|
Meta-issue: #16936
Unittest
Pytest
pytest
plugin for test discovery/execution. #19790Cleanup
Notes
Public issues
Issues we expect this rewrite will fix
pytest feedback on how to things the "right way"
unittest missing features
unittest.main()
in the test file #17342The text was updated successfully, but these errors were encountered: