Skip to content

Commit f98239e

Browse files
Adding some information about running specific test groups / individual tests.
1 parent fc162a8 commit f98239e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/guides/contributing/unit_tests.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,27 @@ For verbose test output (listing each test and result status), run::
2727

2828
ctest -V
2929

30+
You can also run single test categories or individual tests. To view a list of
31+
availble tests, run::
32+
33+
ctest -N
34+
35+
You can run specific groups of tests by name using the ``-R`` (match by regex)
36+
option, for example::
37+
38+
ctest -V -R test_cpu
39+
ctest -V -R test_gpu
40+
ctest -V -R test_python
41+
42+
You can also run individual test directly using ``--run_only``, for example to
43+
run only the CPU unit tests from the Builtins suite::
44+
45+
tests/cpu/test_cpu_exec --run_only Builtins
46+
47+
Similarly you can run just Python tests directly::
48+
49+
python3 tests/python/OpenColorIOTestSuite.py
50+
3051
Test framework
3152
==============
3253

0 commit comments

Comments
 (0)