add TSamLast command for reexecuting last running tests

This commit is contained in:
2025-12-25 14:30:34 +01:00
parent 51ec535eac
commit cbc3e201ae
8 changed files with 260 additions and 4 deletions

View File

@@ -61,4 +61,19 @@ describe("test-samurai public API", function()
assert.is_true(called)
end)
it("delegates test_last to core.run_last", function()
local called = false
local orig = core.run_last
core.run_last = function()
called = true
end
test_samurai.test_last()
core.run_last = orig
assert.is_true(called)
end)
end)