-
Notifications
You must be signed in to change notification settings - Fork 27
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
tappy fails to parse apparently valid TAP stream #110
Comments
FWIW, node-tap parses the same data successfully.
|
Technically, tappy is correct on this matter. The spec does not support multiple plan lines. I brought up this exact subject in 2015 and the proposal was shot down (TestAnything/testanything.github.io#36 (comment)) for some valid reasons. Part of what tappy does is validate if the TAP data adheres to the spec. In the case of multiple plans, that is out of spec so tappy fails. Issue #39 is for opting out of parsing errors. That could solve the failure, but I think it would lead to other errors because tappy would not be able to determine which is the correct plan count (since it would be the summation of the plans). The tappy parser aims to be compliant with the spec. Since multiple plans are not permitted by the spec, I'm not sure if there is a correct course of action to fix this. I do not want to diverge from what the spec says. It's been a long time since I tried, but I think this would work properly if each of those TAP outputs were in separate files and passed into tappy. |
Sigh. I'm really going off TAP. It's most like it was thrown together one night when drunk and retroactively justified. |
I hear you for sure. It definitely doesn't handle all the cases that users sometimes need. I'm going to close this one because there's not much I can do about it and stay compliant with the spec. |
With the following TAP stream in a file:
The text was updated successfully, but these errors were encountered: