Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4960973028

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
bin
lib
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:

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

Hacking

Running the tests

./test.lua

TODO

  • Check the test context for leaking global variables
  • Better reporting, just follow Whiskey I would say
  • Command Line Tool, to use in makefiles

License

Apache 2.0, for more info see LICENSE.

Something went wrong with that request. Please try again.