-
Notifications
You must be signed in to change notification settings - Fork 68
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
Does this work with substack/tape? #30
Comments
Short Answer: Sorry, No. Not yet. Once we've tried to and suspened for a while. |
added to FAQ then closed. |
Can you expand on this a bit, please? The README says that you can simply ‘use assert instead’ (i.e. not run your code through the power-assert module); wouldn't that mean that TAP is implicitly supported? How, precisely, is TAP output not possible with power-assert? |
Tape actually wraps Node's assertions directly, to something along the lines of this: // Obviously, it's a lot more sophisticated than this, because
// assertion messages need printed, etc.
var assert = require("assert")
Object.keys(assert).forEach(function (key) {
Test.prototype[key] = function () {
try {
assert[key].apply(assert, arguments)
} catch (e) {
this.fail(e.message)
return
}
this.pass()
}
}) Because it wraps Node's native methods from directly requiring them internally, and it does not catch and report thrown errors, there's no way to support it without either the user using tape-catch or power-assert reinventing much of that and/or Tape's test handling magic. |
Hi, is anything changed regarding to this? :) |
No description provided.
The text was updated successfully, but these errors were encountered: