Skip to content

Commit 9e6a153

Browse files
authored
docs: add instructions on how to run tests (#397)
1 parent 92e6605 commit 9e6a153

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

TESTS_README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ end)
3232

3333
The test **some test** checks that a functions output is as expected based on the input. The second test **some other test** checks that the variable **bounter** is reset for each test (as defined in the before_each block).
3434

35+
# Running tests
36+
37+
Run the test using `:PlenaryBustedTest <file>`.
38+
39+
```vimscript
40+
" Run the test in the current buffer
41+
:PlenaryBustedTest %
42+
```
43+
3544
# mocking with luassert
3645

3746
Plenary.nvim comes bundled with [luassert](https://github.com/Olivine-Labs/luassert) a library that's built to extend the built-int assertions... but it also comes with stubs, mocks and spies!

0 commit comments

Comments
 (0)