1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-28 21:04:29 +00:00

Add integration test

This commit is contained in:
Evil Eye 2025-10-25 11:10:45 +02:00
parent 823dc6a896
commit d147006c64
2 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,13 @@ local vfs = require('openmw.vfs')
local world = require('openmw.world')
local I = require('openmw.interfaces')
testing.registerGlobalTest('crash in lua coroutine when accessing type (#8757)', function()
local co = coroutine.wrap(function()
testing.expectEqual(tostring(world.players[1].type), 'Player')
end)
co()
end)
testing.registerGlobalTest('timers', function()
testing.expectAlmostEqual(core.getGameTimeScale(), 30, 'incorrect getGameTimeScale() result')
testing.expectAlmostEqual(core.getSimulationTimeScale(), 1, 'incorrect getSimulationTimeScale result')

View file

@ -61,6 +61,7 @@ local function registerGlobalTest(name, description)
end)
end
registerGlobalTest('crash in lua coroutine when accessing type (#8757)')
registerGlobalTest('timers')
registerGlobalTest('teleport')
registerGlobalTest('getGMST')