Skip to content

Messages from Javascript missing exception.type and .message #317

@mpkorstanje

Description

@mpkorstanje

@davidjgoss what is the stacktrace field supposed to be? I think that between Java and Javascript we have a discrepancy. In Java the stacktrace is a string representation of the entire exception. It is formatted as:

<exception type>: <exception message>
<exception stacktrace line 1>
<exception stacktrace line 2>

Supressed exceptions:
<supressed exception 1>

<supressed exception 2>

In Javascript it seems the exception is only the stacktrace lines of the direct trace of the exception? I.e:

<exception stacktrace line 1>
<exception stacktrace line 2>

As a result the pretty formatter renders the Java stacktraces with sufficient detail. But the JS ones miss the exception.type and .message.

Note: This showed up after cucumber/pretty-formatter#11 and probably relates to #302.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions