Installing Lua

Installing Lua

MacOS

First install Lua and Luarocks using Homebrew:

$ brew install lua

Then install the Busted testing framework for Lua:

$ luarocks install busted

Then run your tests:

$ busted

Ubuntu

First install Lua and Luarocks using Apt:

$ sudo apt-get install lua5.3 luarocks

Then install the Busted testing framework for Lua:

$ luarocks install busted

If this fails, you may need to use sudo:

$ sudo luarocks install busted

Then run your tests:

$ busted

Windows

First install Lua and Luarocks using Chocolatey:

C:\> choco install lua

Then install the Busted testing framework for Lua:

C:\> luarocks install busted

Then run your tests:

C:\> busted