]> granicus.if.org Git - graphviz/commitdiff
DEVELOPERS.md: add instructions of how to run a single test
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 15 Aug 2022 03:06:30 +0000 (20:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 18 Aug 2022 14:25:57 +0000 (07:25 -0700)
DEVELOPERS.md

index f17ca45d6d4440bf9092780a3a7962bf3a6a3409..4cfdf4e9783d224a13bbce8486c05f42b4551241 100644 (file)
@@ -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