Installing Lua

MacOS

First install Lua and Luarocks using Homebrew:

1
$ brew install lua

Then install the Busted testing framework for Lua:

1
$ luarocks install busted

Then run your tests:

1
$ busted .

Ubuntu

First install Lua and Luarocks using Apt:

1
$ sudo apt-get install lua5.3 luarocks

Then install the Busted testing framework for Lua:

1
$ luarocks install busted

If this fails, you may need to use sudo:

1
$ sudo luarocks install busted

Then run your tests:

1
$ busted .

Windows

First install Lua and Luarocks using Chocolatey:

1
C:\> choco install lua

Then install the Busted testing framework for Lua:

1
C:\> luarocks install busted

Then run your tests:

1
C:\> busted .

Help us explain this better! File a GitHub issue at https://github.com/exercism/lua/issues if you have suggestions, or submit a patch with improvements to the https://github.com/exercism/lua/blob/master/docs/INSTALLATION.md file.