Skip to content

Does this work with substack/tape? #30

Closed

Description

@dbkaplun
No description provided.

Activity

  1. twada commented on Oct 26, 2015

    @twada
    Member

    Short Answer: Sorry, No.

    Not yet. Once we've tried to and suspened for a while.

  2. twada commented on Oct 28, 2015

    @twada
    Member

    added to FAQ then closed.
    Thank you for your question.

  3. ELLIOTTCABLE commented on May 15, 2016

    @ELLIOTTCABLE

    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?

  4. dead-claudia commented on Jun 12, 2016

    @dead-claudia

    @ELLIOTTCABLE

    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.

  5. caesarsol commented on Nov 23, 2017

    @caesarsol

    Hi, is anything changed regarding to this? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions