Conversation
The standard indicates that skipped assertions should be summarized at the end of output, and the specified place for # SKIP and # TODO is before the message.
|
This Lgtm. Cc @substack |
|
If this makes tape more spec compliant this looks good to me. |
|
Would appreciate a second opinion on spec compliance from @isaacs or @malandrew |
|
TLDR: needs a bit more work to match the spec. Should allow a string value for skip option, which is the skip reason. I think I need to change a bit of the code back to fit the spec, and there are a few more things to add. I have copied what look like the relevant parts of the spec here for convenience (quoted sections are all from TAP 13 specification). There is a possible point of ambiguity with skipped tests: should the test description be shown for skipped tests? None of the examples show both a description and a directive (
For
|
|
If tape currently just doesn't report anything for If you DO choose to say something about tests that are skipped (which, imo, is a good idea), then yes, the format like node-tap lets you pass either a string or a boolean as the skip option. For example: The default reporter shows this as "pending tests" in mocha-speak: |
|
Status on this? We're using tape and faucet and would love to see test.skip() and t.skip() in faucet reporter... |
|
@davidmason are you still interested in completing this? If so, let's get a fresh rebase on master, please check the "allow edits" box on the right hand column of the PR, and let's get a restatement of what this PR is currently changing and what is still left to do (possibly in a future PR). My sense is that "making skipped tests count towards the plan" is a useful, albeit breaking, change, and "including the skip count in the output" is also an excellent change. Making |
|
@ljharb I can't get to this any time soon. I've checked |
ljharb
left a comment
There was a problem hiding this comment.
This seems good - @davidmason, is there any additional changes needed before you think this is ready to land?
|
@ljharb what's here should be useful without any extra changes, so I'm happy if you are. I'm busy with a toddler and a new job for now, and neither of them use tape, so I'll have to rely on others to make the call for when/whether to merge. |
|
@davidmason thanks. do you think the last checkbox in the OP can be checked, or is there more changes to be done there? |
c16dde3 to
2ad86d4
Compare
This should address some of #90
ok 23 # skip Insufficient flogiston pressure.1..0 # Skipped: WWW::Mechanize not installedI should be able to look at the last bit in the next week or two.