scottcorgan / tap-out

A different tap parser
MIT License
23 stars 28 forks source link

Stack details are not populated to lastAsserRawErrorString #25

Open tyoshino opened 8 years ago

tyoshino commented 8 years ago

https://github.com/scottcorgan/tap-out/commit/ba074212dd3da3319e07b4a32807bdd720308a4b added support for processing AssertionError of https://www.npmjs.com/package/assert

The body of the stack item is not appended to lastAsserRawErrorString in Parser.prototype._handleError. Due to that, it gets truncated in tap-spec's output.

    ✖ AssertionError: false == true
    --------------------------------
      operator: error
      expected: |-
        undefined
      actual: |-
        { actual: false, expected: true, generatedMessage: true, message: 'false == true', name: 'AssertionError', operator: '==' }
      at: Test.exports.Test.run (/tyoshino/whatwgstreams/reference-implementation/node_modules/tape-catch/index.js:29:10)
      stack: |-