luvit-test

The Lua test runner from Luvit, in a modular package


Keywords
unit, test, unittest, runner, testrunner, lua, luvit
License
Other
Install
npm install luvit-test@0.0.2

Documentation

#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,
require("luvit-test/helper")

Then assert() things you want to test.

  • Create an init.lua file in the tests directory, with just the line
require("luvit-test/runner").run(__dirname)
  • Run the tests with: luvit init.lua

##Example

npm install luvit-set
npm test luvit-set

##License LGPL+; see the LICENSE file