You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TESTS_README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,15 @@ end)
32
32
33
33
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).
34
34
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
+
35
44
# mocking with luassert
36
45
37
46
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