Skip to content
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

Tap reporter outputs internal stack traces #3326

Open
Inomares opened this issue Apr 26, 2024 · 2 comments
Open

Tap reporter outputs internal stack traces #3326

Inomares opened this issue Apr 26, 2024 · 2 comments

Comments

@Inomares
Copy link

Inomares commented Apr 26, 2024

  • 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.

@novemberborn
Copy link
Member

Probably a regression in #3243, though I recall it being intentional / hard to avoid. PR welcome.

@anasjaidi
Copy link

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

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

No branches or pull requests

3 participants