forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
Refs: #21876
- macOS @lszomoru
- linux @connor4312
- windows @karthiknadig
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_suite
testing repo folder. - Add the following to your settings in VSCode:
"python.experiments.optInto": ["pythonTestAdapter"],
- Use the "create environment" command from the command palette, select
venv
and a Python version >=3.7. - In the terminal, run
python -m pip install pytest
. - From the command palette, run "python: configure tests", select
pytest
and then "." (root directory)
-
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.
- 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 runningpytest
directly from the command line for thetest_logging
file. - Run a test that has a segmentation fault, make sure it resolves correctly and displays a helpful message.