Skip to content

TPI: fifo test communication (pytest)Β #24505

@eleanorjboyd

Description

@eleanorjboyd

Refs: 23279

Complexity: 5

Author: @eleanorjboyd

Create Issue


  1. Setup:

    1. Clone the test repo from here or use your own repo of pytests.
    2. Launch VSCode and open the python-ext-tester/python-testing/inc-dec-workspace 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. (for pytest)
      1. In the terminal, run python -m pip install pytest.
      2. From the command palette, run "python: configure tests", select pytest and then "." (root directory)
    6. click the test explorer icon (beaker)
  2. Testing:

    1. Now play around with running the tests attempting to put "strain" on the testing flow to make sure it works as anticipated
    2. Ideas of what to do include:
      1. Run large number of tests and make sure it finishes successfully (see the subtests or the parameterized tests which should have 2000 tests that can be run)
      2. stop tests and restart them (NOTE: there is a know problem where if you restart a test 3 times during debugging it will freeze the window, see issue please comment on the issue if you hit something similar and your repro steps)
      3. debug tests, put break-points on and generally just start, restart, and stop tests in debug mode
      4. throw an error in a test or spin up a subprocess as part of a test

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions