Publish outputs to checked destinations and preserve failure evidence

This commit is contained in:
2026-11-16 03:52:35 +00:00
parent cea7e44232
commit b63c8af467
11 changed files with 656 additions and 336 deletions

View File

@@ -119,6 +119,22 @@ func TestStageIDIsLiteralInMarkdownAndExactInYAML(t *testing.T) {
}
}
func TestMarkdownTreatsTranscriptPathsAsLiteralText(t *testing.T) {
snapshot := Snapshot{
TranscriptPath: "incoming/[raw](https://example.invalid)/_input_ <part>.json",
OutputPath: "out/*file*\\name\nsecond",
}
rendered := string(Markdown(snapshot))
for _, want := range []string{
`incoming/\[raw\](https&#58;//example.invalid)/\_input\_ &lt;part&gt;.json`,
`out/\*file\*&#92;name<br>second`,
} {
if !strings.Contains(rendered, want) {
t.Fatalf("missing escaped path %q in:\n%s", want, rendered)
}
}
}
func markdownTableRows(text string) []string {
var rows []string
for _, line := range strings.Split(text, "\n") {