mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
doc(test): add documentation for running tests
This commit is contained in:
parent
14304a3a82
commit
4f0fefd847
1 changed files with 17 additions and 0 deletions
17
tests/README.md
Normal file
17
tests/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
## Quick start (running tests)
|
||||
|
||||
1. To run a particular test file:
|
||||
```bash
|
||||
make tests TESTS=indent/c_spec.lua
|
||||
```
|
||||
2. To run all the tests, you will need to install all language parsers. Run `make parsers` to install them into `.test-deps/nvim-{os}-{arch}/share`. This could take some time.
|
||||
|
||||
Then, to run all query tests:
|
||||
```bash
|
||||
make tests TESTS=query
|
||||
```
|
||||
|
||||
To run all indent tests:
|
||||
```bash
|
||||
make tests TESTS=indent
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue