-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Summary formatter should print more error information #1513
Comments
In short. Yes and No. Yes it does print all you've mentioned, yes that's deliberate (For now), and yes it's slightly buggy (It doesn't report re-runs e.t.c. properly). No it "shouldn't" do these things. Now I'm not 100% sure, as I've been out of the loop RE formatters for a while. But I believe that our I'll delegate to @aurelien-reeves / @vincent-psarga on this as they did a bunch of the work in this area I believe. |
Implementation wise, from looking at the source, the impression I got is that it was just missing some logic and that it shouldn't be hard to implement. But I wanted to ask first whether the change would be desired. The way I see it, it's hardly ever useful to swallow errors in this way. |
I have to check with other implem of cucumber and other tools It is actually explicitly documented that way: https://github.com/cucumber/cucumber-ruby/blob/master/features/docs/formatters/summary_formatter.feature |
So for things like formatters, at the moment it's opportunity / loss. We have 2 big ish things to consider.
|
Well, if by documentation you mean
I actually interpret that as a sign that this should be changed because neither RSpec nor Mocha have this behaviour on failures, and it doesn't say anything about errors, only about omitting the steps. If by documentation you mean that the scenario expectations would need to be changed because they currently explicitly expect that errors are silent, then, yeah, sure. |
Also note that the |
Yes I meant that :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two months if no further activity occurs. |
Describe the bug
Hi! Not sure if this is intentional but I was expecting the
summary
formatter to format "success" the way it does, but in the case of errors, I was expecting to still give me useful information about the errors.To Reproduce
Clone https://github.com/activeadmin/activeadmin.
Run
bundle install
.Introduce a typo bug like
Setup test environment with
bin/rake setup
.Run cucumber feature with
bin/cucumber --format summary features/authorization_pundit.feature:21
.Expected behavior
I was expecting a more helpful error like the one you get with
--format pretty
:However, with
--format summary
, all the error information is "swallowed", so issues are hard to debug:Context & Motivation
I introduced some bugs in my code that made cucumber scenarios failed, but I had no clue on how to go about investigating them until I realized changing the formatter would give me more useful information for debugging.
Your Environment
The text was updated successfully, but these errors were encountered: