File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,8 @@ clear = mod.clear
215
215
assert = require " luassert"
216
216
217
217
mod .run = function (file )
218
+ file = file :gsub (" \\ " , " /" )
219
+
218
220
print (" \n " .. HEADER )
219
221
print (" Testing: " , file )
220
222
Original file line number Diff line number Diff line change 42
42
43
43
function harness .test_directory (directory , opts )
44
44
print " Starting..."
45
+ directory = directory :gsub (" \\ " , " /" )
45
46
local minimal = not opts or not opts .init or opts .minimal or opts .minimal_init
46
47
47
48
opts = vim .tbl_deep_extend (" force" , {
Original file line number Diff line number Diff line change 1
1
2
2
" Create command for running busted
3
3
command ! -nargs =1 -complete =file PlenaryBustedFile
4
- \ lua require (' plenary.busted' ).run (vim .fn.expand (" <args>" ))
4
+ \ lua require (' plenary.busted' ).run (vim .fn.expand ([[ <args> ]] ))
5
5
6
6
command ! -nargs =+ -complete =file PlenaryBustedDirectory
7
- \ lua require (' plenary.test_harness' ).test_directory_command (" <args>" )
7
+ \ lua require (' plenary.test_harness' ).test_directory_command ([[ <args> ]] )
8
8
9
9
nnoremap <Plug> PlenaryTestFile :lua require('plenary.test_harness').test_directory(vim.fn.expand("%:p"))<CR>
You can’t perform that action at this time.
0 commit comments