aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-06 18:13:57 +0200
committerGitHub <noreply@github.com>2023-04-06 18:13:57 +0200
commit0bc323850410df4c3c1dd8fabded9d2000189270 (patch)
treee11df05e1a1dc3df1cc30027aed42ca1333b75cb
parent824639c7c17c4870cde83dd28fed7ed6be0ed4c9 (diff)
downloadrneovim-0bc323850410df4c3c1dd8fabded9d2000189270.tar.gz
rneovim-0bc323850410df4c3c1dd8fabded9d2000189270.tar.bz2
rneovim-0bc323850410df4c3c1dd8fabded9d2000189270.zip
test(Windows): normalize paths for test summary
It previously gave a mix of forward and backslashes which was jarring.
-rw-r--r--test/busted/outputHandlers/nvim.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/busted/outputHandlers/nvim.lua b/test/busted/outputHandlers/nvim.lua
index 2ce32c3b7a..e17536e0f8 100644
--- a/test/busted/outputHandlers/nvim.lua
+++ b/test/busted/outputHandlers/nvim.lua
@@ -204,7 +204,7 @@ return function(options)
handler.fileStart = function(file)
fileTestCount = 0
- io.write(fileStartString:format(file.name))
+ io.write(fileStartString:format(vim.fs.normalize(file.name)))
io.flush()
return nil, true
end
@@ -213,7 +213,7 @@ return function(options)
local elapsedTime_ms = getElapsedTime(file)
local tests = (fileTestCount == 1 and 'test' or 'tests')
fileCount = fileCount + 1
- io.write(fileEndString:format(fileTestCount, tests, file.name, elapsedTime_ms))
+ io.write(fileEndString:format(fileTestCount, tests, vim.fs.normalize(file.name), elapsedTime_ms))
io.flush()
return nil, true
end