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

Do not apply Before and After Hooks to Test Cases with no Test Steps #1311

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

brasmusson
Copy link
Contributor

@brasmusson brasmusson commented Jul 24, 2018

Summary

Do not apply Before and After Hooks to Test Cases with no Test Steps.

Details

Do not apply Before and After Hooks to Test Cases with no Test Steps, so that the executed Test Case really has no Test Steps if the Pickle it was created from had no Pickle Steps.

Motivation and Context

Needed to get the result status Undefined for scenarios with not steps, see cucumber/cucumber-ruby-core#156.
See cucumber/cucumber-ruby-core#144 (comment)

How Has This Been Tested?

The automated test suite has been updated to verify this behavior.

Types of changes

  • Refactor (code change that does not change external functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Also mark the iso-8859-1.feature as wip since the gherkin library
(v5.1.0) does not support using iso-8859-1 in feature files.
@brasmusson brasmusson merged commit c69d9f0 into master Jul 26, 2018
brasmusson added a commit that referenced this pull request Jul 26, 2018
@brasmusson brasmusson deleted the scenarios-no-steps branch July 26, 2018 14:27
@lock
Copy link

lock bot commented Jul 26, 2019

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 Jul 26, 2019
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.

1 participant