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

Version Path
gurke-2.4.2 features/gurke.feature
gurke-2.4.1 features/gurke.feature
gurke-2.4.0 features/gurke.feature
gurke-2.3.0 features/gurke.feature
gurke-2.2.2 features/gurke.feature
gurke-2.2.1 features/gurke.feature
gurke-2.1.0 features/gurke.feature
gurke-2.0.3 features/gurke.feature
gurke-2.0.2 features/gurke.feature
gurke-2.0.1 features/gurke.feature
gurke-2.0.0 features/gurke.feature
gurke-2.0.0.dev.1.b25 features/gurke.feature
gurke-2.0.0.dev.1.b24 features/gurke.feature
gurke-2.0.0.dev.1.b23 features/gurke.feature
gurke-2.0.0.dev.1.b22 features/gurke.feature
gurke-2.0.0.dev.1.b20 features/gurke.feature
gurke-2.0.0.dev.1.b19 features/gurke.feature
gurke-2.0.0.dev.1.b18 features/gurke.feature
gurke-2.0.0.dev.1.b17 features/gurke.feature