use mtt for integration tests

This commit is contained in:
BuckarooBanzay 2022-08-02 14:56:32 +02:00
parent 4b496a1e61
commit 5642f139df
17 changed files with 75 additions and 130 deletions

10
mtt.lua Normal file
View file

@ -0,0 +1,10 @@
mtt.register("send mail", function(callback)
-- send a mail
mail.send("player1", "player2", "something", "blah")
-- check the receivers inbox
local list2 = mail.getMessages("player2")
assert(list2 ~= nil and #list2 > 0)
callback()
end)