lunarmodules / busted

Elegant Lua unit testing.
https://lunarmodules.github.io/busted/
MIT License
1.38k stars 184 forks source link

Garbled characters in output #716

Closed ZzZombo closed 1 year ago

ZzZombo commented 1 year ago

0 successes / 0 failures / 2 errors / 0 pending : 0.0 seconds

Error тЖТ Cannot find file or directory: spec

Error тЖТ No test files found matching Lua pattern: _spec

Using Windows Terminal running PowerShell Core on Windows 10.

Tieske commented 1 year ago

no windows system to test, but I presume that's becasue it defaults to the utfTerminal output, try the plain one instead; https://github.com/lunarmodules/busted/tree/master/busted/outputHandlers

busted -o plainTerminal

ZzZombo commented 1 year ago

Yep, it worked.

Tieske commented 1 year ago

just tried;


C:\Users\thijs>busted

0 successes / 0 failures / 2 errors / 0 pending : 0.0 seconds

Error  Cannot find file or directory: spec

Error  No test files found matching Lua pattern: _spec

C:\Users\thijs>busted -o plainTerminal

0 successes / 0 failures / 2 errors / 0 pending : 0.0 seconds

Error -> Cannot find file or directory: spec

Error -> No test files found matching Lua pattern: _spec

C:\Users\thijs>```
Tieske commented 1 year ago

though wondering why it doesn't default to this on Windows