From: Matthew Fernandez Date: Mon, 15 Aug 2022 03:06:30 +0000 (-0700) Subject: DEVELOPERS.md: add instructions of how to run a single test X-Git-Tag: 5.0.1~5^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05373739d3d2fd9090f17463b1c6044260b53726;p=graphviz DEVELOPERS.md: add instructions of how to run a single test --- diff --git a/DEVELOPERS.md b/DEVELOPERS.md index f17ca45d6..4cfdf4e97 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -88,6 +88,15 @@ env PATH=${PREFIX}/bin:${PATH} C_INCLUDE_PATH=${PREFIX}/include \ On macOS, use the same command except replacing `LD_LIBRARY_PATH` with `DYLD_LIBRARY_PATH`. +To run a single test, you use its name qualified by the file it lives in. E.g. + +```sh +env PATH=${PREFIX}/bin:${PATH} C_INCLUDE_PATH=${PREFIX}/include \ + LD_LIBRARY_PATH=${PREFIX}/lib LIBRARY_PATH=${PREFIX}/lib \ + PYTHONPATH=${PREFIX}/lib/graphviz/python3 \ + python3 -m pytest tests/test_regression::test_2225 --verbose +``` + *TODO: on Windows, you probably need to override different environment variables?* ## Performance and profiling