Sha256: 58f8edb4a53972bdf9ce54c7616861cbaa0bb779dbe48d4cf07ad135a5e64d16

Contents?: true

Size: 1.43 KB

Versions: 22

Compression:

Stored size: 1.43 KB

Contents

Feature: Custom Formatter

  Scenario: count tags
    When I run cucumber --format Cucumber::Formatter::TagCloud features
    Then STDERR should be empty
    Then it should fail with
      """
      | @after_file | @background_tagged_before_on_outline | @four | @lots | @one | @sample_four | @sample_one | @sample_three | @sample_two | @three | @two |
      | 1           | 1                                    | 1     | 1     | 1    | 2            | 1           | 2             | 1           | 2      | 1    |

      """

  Scenario: my own formatter
    Given a standard Cucumber project directory structure
    And a file named "features/f.feature" with:
      """
      Feature: i'll use my own
        Scenario: just print me
          Given this step works
      """
    And a file named "features/step_definitions/steps.rb" with:
      """
      Given /^this step works$/ do
      end
      """
    And a file named "features/support/ze/formator.rb" with:
      """
      module Ze
        class Formator
          def initialize(step_mother, io, options)
            @step_mother = step_mother
            @io = io
          end

          def scenario_name(keyword, name, file_colon_line, source_indent)
            @io.puts "$ #{name.upcase}"
          end
        end
      end
      """
    When I run cucumber features/f.feature --format Ze::Formator
    Then STDERR should be empty
    Then it should pass with
      """
      $ JUST PRINT ME

      """

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
cucumber-0.7.0 features/custom_formatter.feature
cucumber-0.7.0.beta.8 features/custom_formatter.feature
cucumber-0.7.0.beta.7 features/custom_formatter.feature
cucumber-0.7.0.beta.6 features/custom_formatter.feature
cucumber-0.7.0.beta.5 features/custom_formatter.feature
cucumber-0.7.0.beta.4 features/custom_formatter.feature
cucumber-0.7.0.beta.3 features/custom_formatter.feature
cucumber-0.7.0.beta.2 features/custom_formatter.feature
cucumber-0.7.0.beta.1 features/custom_formatter.feature
cucumber-0.6.4 features/custom_formatter.feature
cucumber-0.6.3 features/custom_formatter.feature
davidtrogers-cucumber-0.6.2 features/custom_formatter.feature
cucumber-0.6.2 features/custom_formatter.feature
cucumber-0.6.1 features/custom_formatter.feature
cucumber-0.6.0 features/custom_formatter.feature
cucumber-0.5.3 features/custom_formatter.feature
cucumber-0.5.2 features/custom_formatter.feature
cucumber-0.5.1 features/custom_formatter.feature
cucumber-0.5.0 features/custom_formatter.feature
cucumber-0.4.5.rc2 features/custom_formatter.feature