From 1a9736bbe9937f77182fe3eb87e27eca099cf24d Mon Sep 17 00:00:00 2001 From: Adam Yoblick Date: Tue, 16 Jul 2024 14:41:00 -0500 Subject: [PATCH] Update test docs --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9d2bead8..a6400a15 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -74,6 +74,16 @@ On Linux or macOS: .../debugpy$ python3 -m tox -e py27,py37 --develop ``` +You can run all tests in a single file using a specified python version, like this: +``` +...\debugpy> py -m tox --develop -e py312 -- -n0 ".\tests\debugpy\server\test_cli.py" +``` + +You can also specify a single test, like this: +``` +...\debugpy> py -m tox --develop -e py312 -- -n0 ".\tests\debugpy\server\test_cli.py::test_duplicate_switch" +``` + ### Running tests without tox While tox is the recommended way to run the test suite, pytest can also be invoked directly from the root of the repository. This requires packages in tests/test_requirements.txt to be installed first.