cucumber-rs / cucumber

Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.
https://cucumber-rs.github.io/cucumber/main
Apache License 2.0
564 stars 69 forks source link

Print failed scenario name #282

Open stepantubanov opened 1 year ago

stepantubanov commented 1 year ago

This is just a suggestion to add scenario name to output.

Currently it looks like this with the default writer:

   ✘  Then last response status is 123
      Step failed:
      Defined: tests/features/api/schema.feature:350:5
      Matched: tests/api/mod.rs:940:1
      Step panicked. Captured output: assertion failed: `(left == right)`
       ...

It would be helpful to see the scenario name. It would actually be helpful to see the entire scenario (all of the steps, not just the last one; last step alone doesn't provide enough context). I'm referring to the bottom of the output with repeat_failed setting.

Or alternatively if there's a setting that can be used to suppress printing all of the steps of successful scenarios that may be even better.

tyranron commented 1 year ago

@stepantubanov would you like to make a PR for this?

jhoover4 commented 2 months ago

@tyranron do we still need work on this? I could open a PR