Publish outputs to checked destinations and preserve failure evidence
This commit is contained in:
@@ -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://example.invalid)/\_input\_ <part>.json`,
|
||||
`out/\*file\*\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") {
|
||||
|
||||
Reference in New Issue
Block a user