Skip to content

Commit 9f608ca

Browse files
CONTRIBUTING.md: explain how to run a group of tests or a single CT test
1 parent dba6345 commit 9f608ca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ gmake ct-queue_parallel
5050
gmake ct-unit_log_management
5151
```
5252

53+
### Running Specific Groups or Tests
54+
55+
All `ct-*` Make targets support a `t=` argument which are transformed to [`-group` and `-case` Common Test runner options](https://www.erlang.org/doc/apps/common_test/run_test_chapter.html).
56+
57+
``` shell
58+
# Runs a a group of tests named 'all_tests_with_prefix' in suite 'test/rabbit_mgmt_http_SUITE.erl'
59+
gmake ct-rabbit_mgmt_http t="all_tests_with_prefix"
60+
61+
# Runs a test named 'users_test' in group 'all_tests_with_prefix' in suite 'test/rabbit_mgmt_http_SUITE.erl'
62+
gmake ct-rabbit_mgmt_http t="all_tests_with_prefix:users_test"
63+
# Runs a test named 'queues_test' in group 'all_tests_with_prefix' in suite 'test/rabbit_mgmt_http_SUITE.erl'
64+
gmake ct-rabbit_mgmt_http t="all_tests_with_prefix:queues_test"
65+
```
66+
67+
5368
## Running Single Nodes from Source
5469

5570
``` shell

0 commit comments

Comments
 (0)