Test framework for luvit
Lua Perl
Latest commit 94639ac Mar 2, 2015 @rphillips rphillips bump to 0.2.1
Permalink
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.