forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
Refs: #21876
- macOS @meganrogge
- linux @rebornix
- windows @bhavyaus
Complexity: 4
Author: @eleanorjboyd
Thank you for doing this testing! I apologize for how long it is and please let me know if you have any questions!
-
Setup:
- Clone the test repo from here or use your own repo of pytests.
- Launch VSCode and open the
inc_dec_example_repo/inc_dec_example_test_suitetesting repo folder. - Add the following to your settings in VSCode:
"python.experiments.optInto": ["pythonTestAdapter"], - Use the "create environment" command from the command palette, select
venvand a Python version >=3.7. - In the terminal, run
python -m pip install pytest. - From the command palette, run "python: configure tests", select
unittestand then "." (root directory) and then*_testfor the test pattern.
-
General:
- Run the tests and then cancel the test run. Check that there are no spinning icons indicating unresolved actions.
- Debug the tests, then cancel. Again, ensure no spinning icons appear. You should try canceling using both the stop button in the test explorer panel and in the debug controller.
- Execute a large number of tests to ensure that the test run completes (see the subtest folder)
- Verify that test run and logging function correctly by referring to
test_logging.py. Ensure that ALL the expected output gets printed. Compare the output in VSCode with what you get when runningunittestdirectly from the command line for thetest_loggingfile. - Run a test that has a segmentation fault, make sure it resolves correctly and displays a helpful message.
Reactions are currently unavailable