Test framework for luvit
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
modules/options
tests
.gitignore
LICENSE
README.md
init.lua
package.lua
test.lua

README.md

Bourbon - testing for luvit

This is a test runner for luvit inspired by whiskey. A basic testing file looks something like this:

local exports = {}

exports['test_asserts_ok'] = function(test)
  asserts.ok(true)
  test.done()
end

exports['test_asserts_equals'] = function(test)
  asserts.equals(1, 1)
  test.done()
end

return exports

Usage

Running the tests with the commaond line tool

./bin/bourbon -p {tests_directory}

Hacking

Running the tests

./test.lua

TODO

  • Check the test context for leaking global variables
  • Better reporting, just follow Whiskey I would say

License

Apache 2.0, for more info see LICENSE.