all-tests.lua 542 B

1234567891011121314151617181920
  1. lu = require('luaunit/luaunit')
  2. -- mtmock pulls in all other mocks atm
  3. mtmock = require('mtmock')
  4. -- load in testable code, so the suites don't have to bother with it
  5. dofile(mtmock.MODDIR .. 'lobby/lobby.lua')
  6. dofile(mtmock.MODDIR .. 'lobby/chat.lua')
  7. dofile(mtmock.MODDIR .. 'lobby/stats.lua')
  8. dofile(mtmock.MODDIR .. 'lobby/functions.lua')
  9. dofile(mtmock.MODDIR .. 'lobby/tdc.lua')
  10. -- include all test suites
  11. dofile('suites/lobby_stats.lua')
  12. dofile('suites/lobby_functions.lua')
  13. dofile('suites/lobby_tdc.lua')
  14. os.exit(lu.LuaUnit.run())