diff --git a/testing/classes/TestMethod.lua b/testing/classes/TestMethod.lua index 9fec5e42d..f4f8688d6 100644 --- a/testing/classes/TestMethod.lua +++ b/testing/classes/TestMethod.lua @@ -372,6 +372,14 @@ TestMethod = { end, + waitSeconds = function(self, seconds) + local start = love.timer.getTime() + while love.timer.getTime() < start + seconds do + coroutine.yield() + end + end, + + -- @method - TestMethod:evaluateTest() -- @desc - evaluates the results of all assertions for a final restult -- @return {nil}