This is an alternative output handler for Busted, a unit testing framework for Lua.
It is based on the gtest
output handler that is bundled with Busted.
- More succint output: prints one line per test in the success case
- Always produces color output on Unix
- Test timing is showcased to the left, and long-running tests (over 1 or 10 seconds) are highlighted in different colors
luarocks install busted-htest
busted -o htest -v
or add a file .busted
to your project root containing
return {
default = {
verbose = true,
output = "htest"
},
}
(The verbose
/-v
flag is optional, but it produces a nice summary at the end.)
This is based off the code of gtest
from Busted, and like Busted, it is MIT-licensed.