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.
This commit is contained in:
parent
1850762118
commit
ec3a889758
1 changed files with 2 additions and 2 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue