include stdout into the detail-float
All checks were successful
tests / test (push) Successful in 10s

This commit is contained in:
2026-01-06 12:26:58 +01:00
parent 29ddc34add
commit f3350cad98
4 changed files with 94 additions and 2 deletions

View File

@@ -280,6 +280,7 @@ describe("test-samurai-mocha-runner", function()
titlePath = { "Math", "subs" },
file = "/tmp/math.spec.js",
location = { file = "/tmp/math.spec.js", line = 10, column = 5 },
output = { "log: before", "log: after" },
error = {
message = "oops",
stack = "Error: oops\n at Context.<anonymous> (/tmp/math.spec.js:10:5)\n at processImmediate",
@@ -293,6 +294,7 @@ describe("test-samurai-mocha-runner", function()
titlePath = { "Math", "adds" },
file = "/tmp/math.spec.js",
location = { file = "/tmp/math.spec.js", line = 4, column = 2 },
output = { "adds log" },
}),
vim.json.encode({
event = "test",
@@ -311,6 +313,10 @@ describe("test-samurai-mocha-runner", function()
assert.is_true(outputs["Math/subs"] ~= nil)
assert.is_true(outputs["Math/adds"] ~= nil)
assert.is_true(outputs["Math/skips"] ~= nil)
assert.equals("log: before", outputs["Math/subs"][1])
assert.equals("log: after", outputs["Math/subs"][2])
assert.equals("adds log", outputs["Math/adds"][1])
assert.equals("skipped", outputs["Math/skips"][1])
end)
it("does not return results on complete", function()