-
Notifications
You must be signed in to change notification settings - Fork 1.2k
TPI: debugging, multiroot, and large workspace testing with unittest #21306
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
Comments
I ran into quite some issues (debugging not working, multi-root tests not showing, could not test large test suite), not sure if actually bugs or setup related. 👍 for the instructions, that got me setup quite fast. |
@bpasero did you successfully see the line in the log |
@eleanorjboyd oh I reported all issues, I am not sure why they are not linked back to this issue 🤔 I swear I was seeing an entry for |
Here are my issues: https://github.com/microsoft/vscode-python/issues/created_by/bpasero They seem to reference not the right issue though. |
I am no longer seeing |
Also hitting #21336 |
Refs (overarching issue): #19098
Complexity: 4
Author: @eleanorjboyd
Create Issue
Thank you for doing this testing! I apologize for how long it is and please let me know if you have any questions!
Prerequisites:
Background Information:
This rewrite is for the underlying infrastructure of how python handles testing therefore all behavior visible to the user should be pretty much the same (minus maybe some error logs going in a better place or test names shortened). Therefore throughout this testing, you can reference the current testing in Python to compare if you think something doesn't look right (or you can always post here too!).
Steps:
Part 0: Setup
"python.experiments.optInto": ["All"],
in your user settings jsonpythonTestAdapter
and something should come up that looks like this:2023-05-26 11:12:04.297 [info] Experiment 'pythonTestAdapter' is active
(this confirms you are actively in the experiment)inc_dec_example_repo/inc_dec_example_test_suite
testing repo folder in vscodecreate environment
command from the command palette, select venv and whatever python version you want >=3.7python -m pip install pytest
python: configure tests
selectunittest
and"." (root directory)
andtest_*.py
Part 1: Debugging
Part 2: Large repo
inc_dec_example_repo/inc_dec_example_test_suite
test_subtests.py
file, changefor i in range(0, 10):
to be much larger likefor i in range(0, 10000):
and make sure it both works for discovery and run tests (the subtests should not be displayed in the test explorer after discovery only after run)Part 3: Multiroot Workspace
inc_dec_example_repo/folder3
but open it as a multiroot workspace (open the filetesting3/testing3.code-workspace
)testFolder1
andtestFolder3
are pytest andtestFolder2
is unittest and they should all be displayed the correct tests based on this type.The text was updated successfully, but these errors were encountered: