Skip to content

Commit 9f14788

Browse files
committed
tests: move test suite to root
1 parent a65a292 commit 9f14788

23 files changed

Lines changed: 8 additions & 9 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $(PLENTEST):
1212
.PHONY: test lint docgen
1313
test: $(PLENTEST)
1414
PLENTEST=$(PLENTEST) nvim --headless --clean -u scripts/minimal_init.lua \
15-
-c "lua require('plentest').test_directory('lua/tests/automated', { minimal_init = './scripts/minimal_init.lua' })"
15+
-c "lua require('plentest').test_directory('tests/automated', { minimal_init = './scripts/minimal_init.lua' })"
1616

1717
lint:
1818
luacheck lua/telescope

doc/telescope.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,8 +2452,7 @@ do the following: >lua
24522452
Another interesting thing to do is that these actions now have functions you
24532453
can call. These functions include `:replace(f)`, `:replace_if(f, c)`,
24542454
`replace_map(tbl)` and `enhance(tbl)`. More information on these functions can
2455-
be found in the `developers.md` and `lua/tests/automated/action_spec.lua`
2456-
file.
2455+
be found in the `developers.md` and `tests/automated/action_spec.lua` file.
24572456

24582457
*telescope.actions.move_selection_next()*
24592458
actions.move_selection_next({prompt_bufnr})

lua/telescope/actions/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
--- Another interesting thing to do is that these actions now have functions you
4646
--- can call. These functions include `:replace(f)`, `:replace_if(f, c)`,
4747
--- `replace_map(tbl)` and `enhance(tbl)`. More information on these functions
48-
--- can be found in the `developers.md` and `lua/tests/automated/action_spec.lua`
48+
--- can be found in the `developers.md` and `tests/automated/action_spec.lua`
4949
--- file.
5050

5151
local api = vim.api

lua/telescope/testharness/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ tester.run_string = function(contents)
7676
end
7777

7878
tester.run_file = function(filename)
79-
local file = "./lua/tests/pickers/" .. filename .. ".lua"
79+
local file = "./tests/pickers/" .. filename .. ".lua"
8080

8181
if not vim.uv.fs_stat(file) then
8282
assert.are.same("<An existing file>", file)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)