ava icon indicating copy to clipboard operation
ava copied to clipboard

Tap reporter outputs internal stack traces

Open Inomares opened this issue 1 year ago • 2 comments

  • What you're trying to do: See stack trace of failing tests while using the --tap parameter.
  • What happened: Stack traces point to ava internals:
TAP version 13
not ok 1 - failing ava test
  ---
    name: AssertionError
    assertion: t.is()
    details:
      'Difference (- actual, + expected):': |-
        - true
        + false
    message: ''
    at: >-
      ExecutionContext.is
      (file:///workspaces/codespaces-blank/node_modules/ava/lib/assert.js:309:16)
  ...

1..1
# tests 1
# pass 0
# fail 1
  • What you expected to happen: Stack traces point to the failing test (such as at: 'file://test.js:4:7')

Minimal reproducible example: https://github.com/Inomares/ava-tap-min-repro/tree/main (Tested in Node 18.20.1 and 20.12.1)

Affects AVA version 6.0.0 and above. Versions prior to 6.0.0 display the correct stack trace.

Inomares avatar Apr 26 '24 22:04 Inomares

Probably a regression in https://github.com/avajs/ava/pull/3243, though I recall it being intentional / hard to avoid. PR welcome.

novemberborn avatar May 05 '24 20:05 novemberborn

how i can start contrbuting on this project please, i want to start my carrer on open source on this project

anasjaidi avatar May 08 '24 19:05 anasjaidi