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 expect
In 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
chaijs
project: https://github.com/chaijs/chai - The LUA
luassert
project: https://github.com/lunarmodules/luassert