-
Notifications
You must be signed in to change notification settings - Fork 9
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
'Error: undefined' appears on failure-details Slack message #73
Comments
Seems to be a bug from
|
Does |
The I understand that many test frameworks do not consistently adhere to a specific pattern. It would be beneficial to address this within the jest-unit reporter. We are also open to making adjustments if this can benefit the community overall. |
@mnoorenberghe we might have a workaround here. According to https://github.com/jest-community/jest-junit/blob/master/utils/buildJsonResults.js#L86 Note: this would mean the entire stack trace will likely be removed and may not be reported to slack. You could try adding a link to the test run/build in the notification for users to view the error message printed on the console instead. |
I would be fine with it just omitting the
Thanks, I'll give that a try now. |
The code never sets the |
The message attribute of `<failure>` is optional and some tools print the message in the textContent. We shouldn't output `undefined` if it's not present. See test-results-reporter/parser#73 for the root issue
The message attribute of `<failure>` is optional and some tools print the message in the textContent. We shouldn't output `undefined` if it's not present. See test-results-reporter/parser#73 for the root issue
The message attribute of `<failure>` is optional and some tools print the message in the textContent. We shouldn't output `undefined` if it's not present. See test-results-reporter/parser#73 for the root issue
Does this project have any interest in retrieving the error message from the contents of the |
I see a growth in number of users using jest-junit reporter. We can fix this issue in the following ways..
|
Example
junit.xml
fromjest-junit
:The text was updated successfully, but these errors were encountered: