Skip to content

Commit bcf897b

Browse files
authored
docs(tests): fix outdated instructions (#422)
1 parent 1252cb3 commit bcf897b

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

TESTS_README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,21 @@ The test **some test** checks that a functions output is as expected based on th
3434

3535
# Running tests
3636

37-
Run the test using `:PlenaryBustedTest <file>`.
37+
Run the test using `:PlenaryBustedFile <file>`.
3838

3939
```vimscript
4040
" Run the test in the current buffer
41-
:PlenaryBustedTest %
41+
:PlenaryBustedFile %
42+
" Run all tests in the directory "tests/plenary/"
43+
:PlenaryBustedDirectory tests/plenary/
44+
```
45+
46+
Or you can run tests in headless mode to see output in terminal:
47+
48+
```bash
49+
# run all tests in terminal
50+
cd plenary.nvim
51+
nvim --headless -c 'PlenaryBustedDirectory tests'
4252
```
4353

4454
# mocking with luassert

0 commit comments

Comments
 (0)