Sha256: 65723c2650f3488403950cc08d08a8b181b8b8f7e1ffb60437d1ba59abdd0ffe
Contents?: true
Size: 1.55 KB
Versions: 19
Compression:
Stored size: 1.55 KB
Contents
Feature: Use gurke As a developer In order to run my feature definitions I want to use the gurke command line program Background: Given I am in a project using gurke Scenario: Run a passing feature file Given a file "features/test.feature" with the following content exists """ Feature: F Scenario: Scenario A Given everything is ok """ And a file "features/support/steps/test_steps.rb" with the following content exists """ module TestSteps step("everything is ok") { } end Gurke.configure{|c| c.include TestSteps } """ When I execute "bundle exec gurke" Then the program exit code should be null And the program output should include "Feature: F" And the program output should include "Scenario: Scenario A" And the program output should include "Given everything is ok" And the program output should include "1 scenarios: 0 failing, 0 pending" Scenario: Run a failing feature file Given a file "features/test.feature" with the following content exists """ Feature: F Scenario: Scenario A Given nothing is ok """ And a file "features/support/steps/test_steps.rb" with the following content exists """ module TestSteps step("nothing is ok") { raise RuntimeError } end Gurke.configure{|c| c.include TestSteps } """ When I execute "bundle exec gurke" And the program output should include "1 scenarios: 1 failing, 0 pending" Then the program exit code should be non-null
Version data entries
19 entries across 19 versions & 1 rubygems