luvit-test

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i luvit-test

Weekly Downloads

2

Version

0.0.2

License

LGPL+

Last publish

Collaborators

  • wscherphof