Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wscherphof/luvit-test
The Lua test runner from Luvit, in a modular package
https://github.com/wscherphof/luvit-test
Last synced: about 1 month ago
JSON representation
The Lua test runner from Luvit, in a modular package
- Host: GitHub
- URL: https://github.com/wscherphof/luvit-test
- Owner: wscherphof
- License: other
- Created: 2014-02-12T13:17:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T05:37:48.000Z (almost 11 years ago)
- Last Synced: 2024-08-09T01:07:21.050Z (3 months ago)
- Language: Lua
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#luvit-test
The [Lua](http://www.lua.org/) test runner from [Luvit](http://luvit.io/), in a modular package##Install
- Download and install [Node.js](http://nodejs.org/download/). 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")
```
Then `assert()` things you want to test.
- Create an `init.lua` file in the tests directory, with just the line
```lua
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