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

Fix #660 and let the rerun formatter include all examples rows when the background fails #661

Conversation

brasmusson
Copy link
Contributor

Fixes #660. The rerun formatter should check for Cucumber:Ast:ScenarioOutline before calling the status method, not after status already has been called.

The rerun formatter is updated to include all example row from example tables when the background fails.

The rerun formatter should not call status on
Cucumber::Ast::ScenarioOutline elements.
Let the rerun formatter includes all example rows for a sceanrio outline
if the background fails.
@@ -54,7 +55,7 @@ def after_feature_element(feature_element)
def after_table_row(table_row)
return unless @in_examples and Cucumber::Ast::OutlineTable::ExampleRow === table_row
unless @header_row
if table_row.failed?
if table_row.failed? || table_row.status == :skipped
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why we still do not have #skipped?? It looks strange to use method to check for one state and compare status to check for another.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On 28 Mar 2014, at 07:12, Oleg Sukhodolsky notifications@github.com wrote:

I wonder why we still do not have #skipped?? It looks strange to use method to check for one state and compare status to check for another.

Yeah, but remember this code will die in 2.0

os97673 added a commit that referenced this pull request Mar 28, 2014
…ure-v1.3.x

Fix #660 and let the rerun formatter include all examples rows when the background fails
@os97673 os97673 merged commit 2e7a989 into cucumber:v1.3.x-bugfix Mar 28, 2014
@brasmusson brasmusson deleted the rerun-background-outline-failure-v1.3.x branch March 28, 2014 07:17
brasmusson referenced this pull request Aug 6, 2014
Update the rerun_formatter.feature to specify that all example rows for
a sceanrio outline should be included if the background fails. The
rerun formatter itself was updated with this when the v1.3.x-bugfix
branch was merged.
@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.

3 participants