Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unknown TAP line X: ' 1..5' #33

Open
nikeee opened this issue Oct 2, 2023 · 2 comments
Open

Error: unknown TAP line X: ' 1..5' #33

nikeee opened this issue Oct 2, 2023 · 2 comments

Comments

@nikeee
Copy link

nikeee commented Oct 2, 2023

I'm using vitest-dev/vitest#445 to generate TAP results.

This is an excerpt from the TAP output:

TAP version 13
1..2
ok 1 - src/redacted.test.ts # time=11.00ms {
    1..5
    ok 1 - redacted # time=1.00ms
    ok 2 - redacted # time=1.00ms
    ok 3 - redacted # time=2.00ms
    ok 4 - redacted # time=1.00ms
    ok 5 - redacted # time=0.00ms
}

I get this error.

`Error: unknown TAP line X: '    1..5'`

It seems like this action is having trouble with the way the library is emitting subtests. Looking at the spec of TAP, sub tests are not even part of TAPv13. It is part of TAPv14, but with a different syntax.

@marijn
Copy link

marijn commented Oct 27, 2023

Having the same issue. Sample TAP output from my suite:

TAP version 13
1..1
# FIXTURE GitHubActionsSpec
not ok 1 GitHubActionsSpec > it_reports_failing_tests
 ---
 message: Expected true to be false.
 severity: fail
 data:
   got: 'true'
   expect: 'false'
 ...

@nikeee
Copy link
Author

nikeee commented Oct 29, 2023

I ended up writing my own action that uses a popular parser: https://github.com/nikeee/tap-summary

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

No branches or pull requests

2 participants