From b5311104848b2551d68919700aba9105234d208d Mon Sep 17 00:00:00 2001 From: Brett Gleason Date: Sat, 9 Dec 2023 15:37:14 -0600 Subject: [PATCH] add note about required test file suffix for PlenaryBustedDirectory to TESTS_README --- TESTS_README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TESTS_README.md b/TESTS_README.md index 955cdf96..5273a631 100644 --- a/TESTS_README.md +++ b/TESTS_README.md @@ -51,6 +51,8 @@ cd plenary.nvim nvim --headless -c 'PlenaryBustedDirectory tests' ``` +Note that `:PlenaryBustedDirectory` will only find tests in files that end in `*_spec.lua`. + # mocking with luassert 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!