Skip to content

tap: fix yaml delimiter#129

Merged
pks-t merged 1 commit intoclar-test:mainfrom
phillipwood:fix-yaml-delimiter
Dec 3, 2025
Merged

tap: fix yaml delimiter#129
pks-t merged 1 commit intoclar-test:mainfrom
phillipwood:fix-yaml-delimiter

Conversation

@phillipwood
Copy link
Contributor

The TAP 13 spec [1] states that the trailing delimiter for yaml diagnostics is "\s+...\n", not "\s+---\n". This causes prove to fail to parse the output of git's unit tests when they fail.

[1] https://testanything.org/tap-version-13-specification.html

The TAP 13 spec [1] states that the trailing delimiter for yaml
diagnostics is "\s+...\n", not "\s+---\n". This causes prove to fail
to parse the output of git's unit tests when they fail. NB If we
ever want to change to using TAP 14 then we'll need to change the
indentation as it requires a strict two space indentation.

[1] https://testanything.org/tap-version-13-specification.html

Reported-by: Jeff King <[email protected]>
@pks-t
Copy link
Member

pks-t commented Dec 3, 2025

Indeed. Quoting the relevant part from the spec:

If the test line is immediately followed by an indented block beginning with /^\s+---/ and ending with /^\s+.../ that block will be interpreted as an inline YAML document.

So yes, this is an obvious fix. Thanks!

@pks-t pks-t merged commit 591dfda into clar-test:main Dec 3, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants