-
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: Dynamic Run Pytest #21494
Comments
@eleanorjboyd, I've added some simple Markdown formatting to the test plan item. Please remember to make this easy for testers to follow.
Maybe a safer option would be |
Is this going to be the final UX? Feels strange to me that the user would have to do these manuals steps just to achieve what should've been discovered automatically in the first place since:
Please ignore this if that's already being considered. |
Refs: #21148
Complexity: 4
Author: @eleanorjboyd
Create Issue
Prerequisites
Use the following repo of tests or use your own repo of pytests https://github.com/eleanorjboyd/inc_dec_example_repo
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 the terminal run
python -m pip install pytest
python: configure tests
selectpytest
and"."
(root directory)Part 1: UI Nesting & Run
Part 2: Debugging
Part 3: Large Files
test_parameterized.py
, 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).Part 4: Seeing Dynamic Run
test_wait_parameterized.py
so you can see the nodes 1 - 10.The text was updated successfully, but these errors were encountered: