-
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
Test Unittest Rewrite #21092
Comments
@eleanorjboyd, I was wondering if you could provide some assistance as I have the feeling that I am missing something. The GitHub repository linked in the TPI, contains only one folder - "inc_dec_example_test_suite". The TPI states that one should open the repository folder in VS Code, but if I do that, even if I go through the setup steps I get the following in the Test Explorer: |
hi @lszomoru, sorry for the confusion! If you could instead open the folder "inc_dec_example_test_suite" as the workspace that should make the rest of the steps work as desired- sorry! |
Ok, thats the same issue I'm running into, been scratching my head for a while now |
I have updated the TPI accordingly, could help others. |
Refs: (overarching issue) #19098
Complexity: 5
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!). Secondly, debugging is not supported yet so there is no need to test debugging on the rewrite which will also be reflected in the TPI steps.
Steps:
Part 0: Setup
ENABLE_PYTHON_TESTING_REWRITE = '1'
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: General
python: output logs
, run tests and confirm that the output appears with all the necessary information (how many tests were run, which succeeded, explanation of failure if that occurred)Part 2: Error Handling
Part 3: Adding Unittest Args
-v
to your pytest args in your settings.json and run the test folder, check that this arg worked (it works if it stops after a single test failure)Part 4: Additional Commands
collapse test cases
andclear all results
Part 5: Different Testing Pattern
python: configure tests
selectunittest
and"." (root directory)
now instead select*test.py
test explorer reference image (from Part 1)
The text was updated successfully, but these errors were encountered: