add TSamLast command for reexecuting last running tests
This commit is contained in:
@@ -95,7 +95,7 @@ describe("test-samurai go runner", function()
|
||||
|
||||
local cmd_spec_sub = go_runner.build_command(spec_sub)
|
||||
assert.are.same(
|
||||
{ "go", "test", "-v", "./pkg", "-run", "^TestFoo%/first$" },
|
||||
{ "go", "test", "-v", "./pkg", "-run", "^TestFoo/first$" },
|
||||
cmd_spec_sub.cmd
|
||||
)
|
||||
|
||||
@@ -108,7 +108,7 @@ describe("test-samurai go runner", function()
|
||||
|
||||
local cmd_spec_func = go_runner.build_command(spec_func)
|
||||
assert.are.same(
|
||||
{ "go", "test", "-v", "./", "-run", "^TestFoo$|^TestFoo/" },
|
||||
{ "go", "test", "-v", "./", "-run", "^TestFoo($|/)" },
|
||||
cmd_spec_func.cmd
|
||||
)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user