lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I had things running with luaunit 1.5, which imports as globals.
But then I needed the luarocks version which is 2.1 and everything is
different.
There is a 3.1 out there, but it isn't packaged with luarocks.


I tried importing it like this (from the example in the source)

local LuaUnit = require('luaunit')

Tests = {}

function Tests:test1()
  ...
  LuaUnit.assertEquals(foo, bar)

os.exit(LuaUnit.run())


But LuaUnit.assertEquals is nil.

I'm not sure how this is supposed to be used.

Dan