Sha256: 9b4036d6ec16d85cc088aad52c1d511d7c720597f5ac8ee2b015b5c0d753ee64
Contents?: true
Size: 1.36 KB
Versions: 9
Compression:
Stored size: 1.36 KB
Contents
Feature: Tagged hooks Background: Given the standard step definitions And a file named "features/support/hooks.rb" with: """ Before('~@no-boom') do raise 'boom' end """ And a file named "features/f.feature" with: """ Feature: With and without hooks Scenario: using hook Given this step passes @no-boom Scenario: omitting hook Given this step passes """ @spawn Scenario: Invoke tagged hook When I run `cucumber features/f.feature:2` Then it should fail with: """ Feature: With and without hooks Scenario: using hook # features/f.feature:2 boom (RuntimeError) ./features/support/hooks.rb:2:in `Before' Given this step passes # features/step_definitions/steps.rb:1 Failing Scenarios: cucumber features/f.feature:2 # Scenario: using hook 1 scenario (1 failed) 1 step (1 skipped) """ Scenario: Omit tagged hook When I run `cucumber features/f.feature:6` Then it should pass with: """ Feature: With and without hooks @no-boom Scenario: omitting hook # features/f.feature:6 Given this step passes # features/step_definitions/steps.rb:1 1 scenario (1 passed) 1 step (1 passed) """
Version data entries
9 entries across 9 versions & 1 rubygems