-
Notifications
You must be signed in to change notification settings - Fork 1
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
TAP flavour for subtests #1
Comments
Regarding the concurrency, i do think there is a possible solution that supports streaming. Given that TestAnything/Specification#14, would break forwards compatibility, I would instead challange the prevailing assumption in the #2 thread that we need to associate a subtest line with the number of its enclosing test point. Instead we can associate it with the description. This is something like that was touched on here TestAnything/Specification#15, but again no consensus was reached. So to illustrate, taking the following results:
If the producer wants to execute tests and subtests concurrently, it can prefix them with tags instead of just spaces:
There's a lot of repetition, but it may be more readable that the alternatives.
|
- added optional plan for number of tests, and included plan output for TAP report, automatically counting and putting at end if not given. This fixes StrangeSkies#17 - changed format for the diagnostic line that introduces a subtest. Switched it from a diagnostic to `[description]` to make it more consistent with the plan for concurrent subtests as per StrangeSkies#1. This is still forwards compatible with existing TAP parsers. - added TAP version line at start of report output. This commit also includes some refinement of Stream/Reporter/Report API; now we don't always assume that a report must be associated with an output stream. It's totally possible that this isn't always the case!
Specification work on TAP stalled before settling on subtest semantics.
Looking at the JS community (and to some extent e.g. the Perl community) it looks like people who want to pin subtest semantics onto the side of TAP 13 use some variation on the four-space-indent encoding proposed in the above issue.
It has a lot going for it;
But it has some outstanding objections;
The text was updated successfully, but these errors were encountered: