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

feat: add stackTrace prop to Exception message #182

Merged
merged 6 commits into from Nov 23, 2023

Conversation

davidjgoss
Copy link
Contributor

@davidjgoss davidjgoss commented Nov 9, 2023

🤔 What's changed?

Adds an optional stackTrace prop to the Exception message schema, so implementations have the ability to include the message and stack trace separately.

⚡️ What's your motivation?

See cucumber/cucumber-js#2348 (comment)

Closes #70 (there is still a separate issue for adding “expected” and “actual” fields).

🏷️ What kind of change is this?

  • ⚡ New feature (non-breaking change which adds new behaviour)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

Copy link
Contributor

@luke-hill luke-hill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this looks good.

Copy link
Contributor

@ehuelsmann ehuelsmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. This makes sense.

@davidjgoss davidjgoss merged commit cc74afa into main Nov 23, 2023
24 checks passed
@davidjgoss davidjgoss deleted the feat/exception-stack-trace branch November 23, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more info alongside failed steps in messages to inform about the failure itself
3 participants