lunarmodules / busted

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

Async not functional? (attempt to call a nil value (global 'async')) #703

Closed PerMalmberg closed 1 year ago

PerMalmberg commented 1 year ago

Hi,

Is async functional or not? All I get is this:

attempt to call a nil value (global 'async')

I found this very old thread suggesting it wasn't supported in v2 for a while, but there are also tests for async in this repo. https://github.com/lunarmodules/busted/issues/545

This is my install script

sudo apt install npm sudo apt lua5.3 liblua5.3-dev libev-dev luarocks -y
# Install rocks system wide as in a local installation busted can't find luacov
sudo luarocks install copas
sudo luarocks install lua-ev scm --server=http://luarocks.org/repositories/rocks-scm/
sudo luarocks install moonscript
sudo luarocks install busted
sudo luarocks install luacov
sudo luarocks install luacov-html
Tieske commented 1 year ago

not functional

PerMalmberg commented 1 year ago

In that case you should probably remove it from the documentation to save everyone some time. :)

Tieske commented 1 year ago

there used to be a branch with a 2.0 implementatioin (wip level), but can't seem to find it anymore...