Sha256: 937749c302e2f77f7cd035439f9658afa6a85f7f7531bb8f1a1efc91e4f83041

Contents?: true

Size: 1.85 KB

Versions: 22

Compression:

Stored size: 1.85 KB

Contents

Feature: Pretty output formatter

  Background:
    Given a file named "features/scenario_outline_with_undefined_steps.feature" with:
      """
      Feature:

        Scenario Outline:
          Given this step is undefined

        Examples:
          |foo|
          |bar|
      """

  Scenario: an scenario outline, one undefined step, one random example, expand flag on
    When I run `cucumber features/scenario_outline_with_undefined_steps.feature --format pretty --expand `
    Then it should pass

  Scenario: when using a profile the output should include 'Using the default profile...'
    And a file named "cucumber.yml" with:
    """
      default: -r features
    """
    When I run `cucumber --profile default --format pretty`
    Then it should pass
    And the output should contain:
    """
    Using the default profile...
    """
  Scenario: Hook output should be printed before hook exception
    Given the standard step definitions
    And a file named "features/test.feature" with:
      """
      Feature:
        Scenario:
          Given this step passes
      """
    And a file named "features/step_definitions/output_steps.rb" with:
      """
      Before do
        puts "Before hook"
       end

      AfterStep do
        puts "AfterStep hook"
      end

      After do
        puts "After hook"
	raise "error"
      end
      """
    When I run `cucumber -q -f pretty features/test.feature`
    Then the stderr should not contain anything
    Then it should fail with:
      """
      Feature: 
 
        Scenario: 
            Before hook
          Given this step passes
            AfterStep hook
            After hook
            error (RuntimeError)
            ./features/step_definitions/output_steps.rb:11:in `After'
      
      Failing Scenarios:
      cucumber features/test.feature:2
      
      1 scenario (1 failed)
      1 step (1 passed)
      """

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
cucumber-2.99.0 features/docs/formatters/pretty_formatter.feature
mobiusloop-0.1.5 features/docs/formatters/pretty_formatter.feature
cucumber-3.0.0.pre.1 features/docs/formatters/pretty_formatter.feature
cucumber-2.4.0 features/docs/formatters/pretty_formatter.feature
mobiusloop-0.1.3 features/docs/formatters/pretty_formatter.feature
mobiusloop-0.1.2 features/docs/formatters/pretty_formatter.feature
cucumber-2.3.3 features/docs/formatters/pretty_formatter.feature
cucumber-2.3.2 features/docs/formatters/pretty_formatter.feature
cucumber-2.3.1 features/docs/formatters/pretty_formatter.feature
cucumber-2.3.0 features/docs/formatters/pretty_formatter.feature
cucumber-2.2.0 features/docs/formatters/pretty_formatter.feature
cucumber-2.1.0 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.2 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.1 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.0 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.0.rc.5 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.0.rc.4 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.0.rc.3 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.0.rc.2 features/docs/formatters/pretty_formatter.feature
cucumber-2.0.0.rc.1 features/docs/formatters/pretty_formatter.feature