You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone the test repo from here or use your own repo of pytests.
Launch VSCode and open the python-ext-tester/python-testing/inc-dec-workspace 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.
(for pytest)
In the terminal, run python -m pip install pytest.
From the command palette, run "python: configure tests", select pytest and then "." (root directory)
click the test explorer icon (beaker)
Testing:
Now play around with running the tests attempting to put "strain" on the testing flow to make sure it works as anticipated
Ideas of what to do include:
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)
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)
debug tests, put break-points on and generally just start, restart, and stop tests in debug mode
throw an error in a test or spin up a subprocess as part of a test
Now play around with running the tests attempting to put "strain" on the testing flow to make sure it works as anticipated
I am a beginner of Python and sorry that it is not clear to me here what to be tested.
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)
I only see 261 tests in the view. I do not find the tests you mentioned, can you please help me where to find them exactly?
Activity
[-]TPI: fifo test communication[/-][+]TPI: fifo test communication (pytest)[/+]sandy081 commentedon Dec 3, 2024
Testers make sure to have pip installed for the set up
sandy081 commentedon Dec 3, 2024
Eleanor Boyd (@eleanorjboyd) Can you please elaborate on following?
I am a beginner of Python and sorry that it is not clear to me here what to be tested.
I only see 261 tests in the view. I do not find the tests you mentioned, can you please help me where to find them exactly?
chrmarti commentedon Dec 3, 2024
Sandeep Somavarapu (@sandy081) I increased the range on the annotation of the
test_odd_eventest to get more test runs.