From ec3a88975811d6b4ef71a49949fddb39e65896f4 Mon Sep 17 00:00:00 2001 From: Jon Shea Date: Tue, 4 Mar 2025 17:34:55 -0500 Subject: [PATCH] fix(docs): update test command flag from -f to -i The `-f` flag on `tree-sitter test` seems to have been removed or replaced with a `-i, --include` flag. This PR updates the "Writing Tests" page to reflect this change. --- docs/src/creating-parsers/5-writing-tests.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/creating-parsers/5-writing-tests.md b/docs/src/creating-parsers/5-writing-tests.md index 363c9c73..1bd42b60 100644 --- a/docs/src/creating-parsers/5-writing-tests.md +++ b/docs/src/creating-parsers/5-writing-tests.md @@ -77,10 +77,10 @@ These tests are important. They serve as the parser's API documentation, and the to verify that everything still parses correctly. By default, the `tree-sitter test` command runs all the tests in your `test/corpus/` folder. To run a particular test, you -can use the `-f` flag: +can use the `-i` flag: ```sh -tree-sitter test -f 'Return statements' +tree-sitter test -i 'Return statements' ``` The recommendation is to be comprehensive in adding tests. If it's a visible node, add it to a test file in your `test/corpus`