Skip to content

TPI: Python testing using new EOT token PYTEST #22080

@eleanorjboyd

Description

@eleanorjboyd

Refs: #21876

Complexity: 4

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!

  1. Setup:

    1. Clone the test repo from here or use your own repo of pytests.
    2. Launch VSCode and open the inc_dec_example_repo/inc_dec_example_test_suite testing repo folder.
    3. Add the following to your settings in VSCode: "python.experiments.optInto": ["pythonTestAdapter"],
    4. Use the "create environment" command from the command palette, select venv and a Python version >=3.7.
    5. In the terminal, run python -m pip install pytest.
    6. From the command palette, run "python: configure tests", select pytest and then "." (root directory)
  2. General:

    1. Run the tests and then cancel the test run. Check that there are no spinning icons indicating unresolved actions.
    2. 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.
    3. Execute a large number of tests to ensure that the test run completes.
    4. 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 running pytest directly from the command line for the test_logging file.
    5. Run a test that has a segmentation fault, make sure it resolves correctly and displays a helpful message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions