summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kilroy <kilroyd@googlemail.com>2023-03-16 15:54:19 +0000
committerKim Gräsman <kim.grasman@gmail.com>2023-03-25 14:26:20 +0100
commitff6936ab99454ec4f5fa9109673e555b9ea5b189 (patch)
treeb02107b60b8eadf81c51daceafd131e210704c53
parentf3798f1b19fc51a61d1b74fa09da4d03c130aa19 (diff)
Fix run_iwyu_test.py instructions in CONTRIBUTING
Commit 8343f0ce8aa1 modified how tests are named. Update the CONTRIBUTING instructions to align.
-rw-r--r--CONTRIBUTING.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a84016f..bcf4489 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -22,9 +22,9 @@ It runs one test for each `.cc` file in the `tests/` directory. (We have additi
The output can be a bit hard to read, but if a test fails, the reason why will be listed after the `ERROR:root:Test failed for xxx` line.
-You can select individual tests by listing their filename without extension as arguments
+You can select individual tests by listing them as arguments. Test names are derived from the file path and name, e.g. `tests/cxx/array.cc` will be named `cxx.test_array`. You can use `python run_iwyu_tests.py --list` to list all available test names.
- python run_iwyu_tests.py array macro_location
+ python run_iwyu_tests.py cxx.test_array cxx.test_macro_location c.test_enum
If you don't want to modify your `PATH` you can specify which IWYU executable to use for testing