-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
rework summary formatter output #13
Comments
I like this Charlie, it's something that irritates me too, but I've sort of grown used to it and stopped noticing! When you propose is very similar to RSpec's output. In RSpec, they categorise the different kinds of issues, so you'd probably see something more like this:
Personally I like this sorting as it helps you to focus on the big problems first (failures) before dealing with the less urgent undefined / pending issues. The Just a suggestion to consider. I like trying to make these tools converge. I wonder what @everzet does in Behat? cc @tooky |
Here is what
For colors, the scenario name (Example: "1") and step name (Example: "And a failing step") are in bold. The relative paths (Example: features/test.feature:21) are all in gray. The failure messages are in red and the warning messages are in yellow. If you would like to reproduce, use the feature at the top, and the following step definitions // features/step_definitions/test_steps.js
module.exports = function () {
this.Given(/^a passing step$/, function() {});
this.Given(/^a failing step$/, function() {
throw new Error('error');
});
this.Given(/^a pending step$/, function() {
return 'pending';
});
this.Given(/^a ambiguous step$/, function() {});
this.Given(/^an? ambiguous step$/, function() {});
this.Given(/^a skipped step$/, function() {});
}; |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
For reference, cucumber-js removed the pretty formatter but now the summary output prints the failed scenarios in the previous pretty format. |
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. |
@aslakhellesoy @jbpros @mattwynne
This is a rework of the progress formatter output that I am thinking about for cucumber-js and wanted to bring up to the whole cucumber community. Please tag anyone else you think should see this
Given a feature:
The current progress formatter output is
The fact that failed steps only lists the errors without the context (the scenario and step) has always bugged me and almost always made me rerun with pretty formatter the failing test in order to understand the context. I also dislike the that the different issues are shown in different places.
I propose the following new output
Thoughts?
The text was updated successfully, but these errors were encountered: