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

Add error diffs to pretty formatter #421

Closed
wants to merge 2 commits into from
Closed

Add error diffs to pretty formatter #421

wants to merge 2 commits into from

Conversation

jbpros
Copy link
Member

@jbpros jbpros commented Oct 8, 2015

Do not merge.

This is an experimental attempt at fixing #386. Something similar would be implemented in a more global fashion. The key idea being that we check for the three properties showDiff, expected and actual properties on error instances to return an augmented description of it. It should probably done in a new ErrorPresenter object, rather than on FailedStepResult.

Thoughts?

@charlierudolph
Copy link
Member

Yes I believe we want an ErrorPresenter object as the summary formatter will definitely want this when it displays errors and we may want to work this into the json formatter as well

@nakolkin
Copy link

Hi folks. This is exactly what I'm looking for. Is there a way to override FailedStepResult somehow externally, probably with some hooks? I'm using cucumber.js with protractor and gulp/grunt.
Thanks.

@pscheit
Copy link

pscheit commented Nov 13, 2015

can I help to get this moving forward? :)

@tommysullivan
Copy link

+1 from me, will try to code it if i ever find any time!

@charlierudolph
Copy link
Member

Closing this as I working on this in another branch and just taking a bunch of code from mocha.

@charlierudolph charlierudolph deleted the error-diffs branch December 22, 2016 04:54
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants