Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Test framework for luvit
Lua Perl

Fetching latest commit…

Cannot retrieve the latest commit at this 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.

Something went wrong with that request. Please try again.