lunarmodules / busted

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

Busted gives the error 'attempt to call method 'add_flag' (a nil value)' #618

Closed Seniru closed 3 years ago

Seniru commented 4 years ago

I install busted through LuaDist and tried to run busted using the command prompt and I got the following error.

/workspace/Module-API-TFM/LuaDist/bin/busted: :25: attempt to call method 'add_flag' (a nil value)

Steps to reproduce

#pre-installation
echo "$(curl -fksSL https://tinyurl.com/luadist)" | bash
alias lua='LuaDist/bin/lua'
alias luadist='LuaDist/bin/luadist'

#install required libraries
luadist install busted
luadist install luacov

alias busted='LuaDist/bin/busted'
alias luacov='LuaDist/bin/luacov'

System information

DorianGray commented 3 years ago

Apologies for the super late response :/

LuaDist is no longer maintained and we have never built a package for it. Unfortunately, we have never supported it. Sorry.