-
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
TPI: debugging, multiroot, and large workspace testing with pytest #21307
Comments
Just pushed a change to the example repo since I edited the parameterized.py file last week but forgot to update the remote. If you already have the repo downloaded and don't want to pull, then here is the code that needs to be in that file:
|
An issue already arose with debugging as @cwebster-99 mentioned here, please add comments to the issue if you see this behavior as well. Thanks! |
Everything except debugging worked as expected for me |
@rebornix can you create an issue and provide logs from the |
@eleanorjboyd I created #21343 |
I don't see |
Refs (overarching issue): https://github.com/microsoft/vscode-python/issues/19098 and
Complexity: 2
Author: @eleanorjboyd
Create Issue
Create Issue
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_parameterized.py
file, change@pytest.mark.parametrize("num", range(1, 100))
to be much larger like@pytest.mark.parametrize("num", range(1, 10000))
and make sure it both works for discovery and run tests (tests should be displayed on the test explorer after discovery and run)The text was updated successfully, but these errors were encountered: