The Lua test runner from Luvit, in a modular package
npm install luvit-test#luvit-test
The Lua test runner from Luvit, in a modular package
##Install
- Download and install Node.js. Then you have npm
- In the root of your Luvit project, npm install luvit-test
##Usage
- In a tests directory, create tests in lua files.
At the top of each test file,
``lua`
require("luvit-test/helper")assert()
Then things you want to test.init.lua
- Create an file in the tests directory, with just the line`lua`
require("luvit-test/runner").run(__dirname)luvit init.lua
- Run the tests with:
##Example
``
npm install luvit-set
npm test luvit-set
##License
LGPL+; see the LICENSE` file