Widely inspired by chaijs, expect aims to bring the behavior-driven development “expect” notation to LUA tests.
expect(2 + 2).to.be.a('number').And.to.equal(4).but.Not.to.be.Nil()You can install expect using LuaRocks with the command:
luarocks install expectIn order to use expect in your tests, look at the usage manual.
If you want to write a new plugin, look at the plugin manual.
Some parts of this projects are inspired/copied from:
- The NodeJS
chaijsproject: https://github.com/chaijs/chai - The LUA
luassertproject: https://github.com/lunarmodules/luassert