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
215215assert = require " luassert"
216216
217217mod .run = function (file )
218+ file = file :gsub (" \\ " , " /" )
219+
218220 print (" \n " .. HEADER )
219221 print (" Testing: " , file )
220222
Original file line number Diff line number Diff line change 4242
4343function harness .test_directory (directory , opts )
4444 print " Starting..."
45+ directory = directory :gsub (" \\ " , " /" )
4546 local minimal = not opts or not opts .init or opts .minimal or opts .minimal_init
4647
4748 opts = vim .tbl_deep_extend (" force" , {
Original file line number Diff line number Diff line change 11
22" Create command for running busted
33command ! -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> ]] ))
55
66command ! -nargs =+ -complete =file PlenaryBustedDirectory
7- \ lua require (' plenary.test_harness' ).test_directory_command (" <args>" )
7+ \ lua require (' plenary.test_harness' ).test_directory_command ([[ <args> ]] )
88
99nnoremap <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