-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
rerun_formatter.feature is failing #615
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
Conversation
|
@os97673 long story! The report API from the core has an It would be great to re-write the rerun formatter using this API, since it's much simpler and would require less code. However this would mean we'll need to invent a way to declare which formatters use the new report API, and which still need wrapping with the Might be a good idea to discuss this on the call this week? |
|
The report API I mentioned is spec'd here: https://github.com/cucumber/cucumber-ruby-core/blob/master/spec/cucumber/core/test/runner_spec.rb. Probably needs better documentation. |
yes, I think it is a good idea. I'm going to check reasons of other failures we have in our fetures for formatters (perhaps there are some other obvious problems in this area) |
|
Right, @tooky and I did some work on this in a pairing session today. We've written a new The challenge now is to work on the I've thought about this a bit, and my best idea so far is to add a facade for each legacy formatter in the Maybe you can have a play with this @os97673? |
- Introduce Reports::FanOut for dealing with multiple reports
- Introduce Reports::LegacyResultRecorder to record results on runtime
for old formatters
Note: the report api from core has to be extended with methods from
Runtime::UserInterface to enable step definitions to print messages,
embed images etc.
It only needs to swallow messages.
Handles converting legacy formatters to new Reports API.
Final scenario still failing with `--expand`
…tter * origin/master: One more re-run feature fixed Tag filters with limits scenarios working
|
@mattwynne I've integrated the new rerun report - the scenario that was added for #503 is still failing, but I don't think I've added a method to the I added a factory method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at these names again, I'm thinking we have three things:
- the core report API
- the extended report API for Cucumber (
CORE_REPORT_API + [:embed, :puts]) - the user interface API for Cucumber (
[:ask]) which only needs to be sent to the user interface, not all the formatters / reports
Oh and
4. the legacy formatter API
We could refer to (2) as the 'new formatter API', and go back to keeping all this stuff in lib/formatters, moving the older stuff into lib/formatters/legacy. That would give us a clear distinction between (1) and (2), and hopefully enough distinction between (1), (2) and (4).
I think at least we should talk about (1) as CORE_REPORT_API and then (2) as REPORT_API. That's probably clear enough, and certainly having a new name for this will make the change very clear to our users. Are we going to change the CLI too, and deprecate the --formatter switch in favour of --report ?
|
New rerun formatter is now live as of 2.0.0.beta.5 |
|
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. |
bundle exec cucumber features/docs/formatters/rerun_formatter.featureIt looks like the problem is that Scenario doesn't have failed? declared.
@mattwynne @tooky what is the right way to get status of a scenario?