From 4f0fefd847cb66fb28d93530b3ff2408df9f3457 Mon Sep 17 00:00:00 2001 From: Rustum Zia Date: Fri, 30 Jan 2026 17:06:41 +0100 Subject: [PATCH] doc(test): add documentation for running tests --- tests/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/README.md diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 000000000..611b23550 --- /dev/null +++ b/tests/README.md @@ -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 +```