Running tests with busted (on Windows)
- Open a Terminal
- Run
busted
- If
busted
cannot be found you have to install it (see below) - If
busted
show garbage characters- Run
chcp 65001
to change code page to Utf-8 - Run
busted
- Run
As of current writing I have been unable to install busted without the use of scoop.sh
- Open Powershell
- Run
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
- Choose yes
y
- Run
irm get.scoop.sh | iex
- Run
scoop install luarocks
- Run
x86_64-w64-mingw32-gcc --version
- If this doesn't show version output,
x86_64-w64-mingw32-gcc
has to be installed.- Install Cygwin with
mingw64-x86_64-gcc-core
package. - Add Cygwins bin folder to PATH (eg:
C:/cygwin64/bin
) - Restart Powershell
- Run
x86_64-w64-mingw32-gcc --version
fromC:/
(or any other location than the bin folder)- If this fails, something went wrong during installation
- Did you add the
mingw64-x86_64-gcc-core
package? - Did you add the bin folder to PATH system environment variable?
- Did you restart Powershell?
- Install Cygwin with
- Run
luarocks install busted
- You should now be able to run the tests.