Sha256: 5f66a5c257a792e233f3bd8e5978d031259fd02ca2f8bc4188045b891de37452

Contents?: true

Size: 1.47 KB

Versions: 16

Compression:

Stored size: 1.47 KB

Contents

Feature: Custom Formatter

  Scenario: count tags
    When I run cucumber --format Cucumber::Formatter::TagCloud features
    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

16 entries across 16 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.103 features/custom_formatter.feature
aslakhellesoy-cucumber-0.3.104 features/custom_formatter.feature
kosmas58-cucumber-0.3.103 features/custom_formatter.feature
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/features/custom_formatter.feature
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/features/custom_formatter.feature
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/features/custom_formatter.feature
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/features/custom_formatter.feature
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/features/custom_formatter.feature
cucumber-0.4.4 features/custom_formatter.feature
cucumber-0.4.3 features/custom_formatter.feature
cucumber-0.4.2 features/custom_formatter.feature
cucumber-0.4.1 features/custom_formatter.feature
cucumber-0.4.0 features/custom_formatter.feature
cucumber-0.4.0.rc1 features/custom_formatter.feature
cucumber-0.3.104 features/custom_formatter.feature
cucumber-0.3.103 features/custom_formatter.feature