Skip to content

Pass the full thrown exception to the reporter reportTestDone api #8448

@AriAy-Ded

Description

@AriAy-Ded

What is your Scenario?

I want to see the full stacktrace within my code when a error happens in testcafe.

Given:

  • A test fails
  • The test uses nested Typescript utility functions/classes

When:

  • The exception is printed

Then:

  • The exception contains only the stacktrace within the utility class, but the stacktrace does not show the place or function of the calling test
  • The exceptions do not contain the full stacktrace,
  • investigating is extremely hard.

What are you suggesting?

Pass the full exception(s) to the reporter reportTestDone api.
The passed stacktrace in this API contains testcafe internals, but it is still missing parts that lead to the test that calls utility functions.

What alternatives have you considered?

I tried writing a custom reporter, the error object does not contain the full path.
Videos help in figuring out at what point the test fails, but they are not sufficient.
Additionally i often need to write console.log statements to help figuring out the full stack trace.

none of this is straight forward and requires a lot of extra work every time something fails

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TYPE: enhancementThe accepted proposal for future implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions