Sha256: 4df8d1b869ebce70c9325d15855c2ff07f5e769000d4b38e75e6d609ea60dc54

Contents?: true

Size: 1.87 KB

Versions: 47

Compression:

Stored size: 1.87 KB

Contents

Feature: Usage formatter
  In order to see where step definitions are used
  Developers should be able to see a list of step definitions and their use

  Background:
    Given a file named "features/f.feature" with:
      """
      Feature: F
        Background: A
          Given A
        Scenario: B
          Given B
        Scenario Outline: C
          Given <x>
          Examples:
            |x|
            |C|
        Scenario: AC
          Given A
          Given C
      """
    And a file named "features/step_definitions/steps.rb" with:
      """
      Given /A/ do;end
      Given /B/ do;end
      Given /C/ do;end
      Given /D/ do;end
      """

  Scenario: Run with --format usage
    When I run `cucumber -f usage --dry-run`
    Then it should pass with exactly:
      """
      --------
      
      /A/       # features/step_definitions/steps.rb:1
        Given A # features/f.feature:3
        Given A # features/f.feature:3
        Given A # features/f.feature:3
        Given A # features/f.feature:12
      /B/       # features/step_definitions/steps.rb:2
        Given B # features/f.feature:5
      /C/       # features/step_definitions/steps.rb:3
        Given C # features/f.feature:13
      /D/       # features/step_definitions/steps.rb:4
        NOT MATCHED BY ANY STEPS
      
      3 scenarios (3 skipped)
      7 steps (7 skipped)
      0m0.012s

      """

    Scenario: Run with --format stepdefs
      When I run `cucumber -f stepdefs --dry-run`
      Then it should pass with exactly:
        """
        --------
        
        /A/   # features/step_definitions/steps.rb:1
        /B/   # features/step_definitions/steps.rb:2
        /C/   # features/step_definitions/steps.rb:3
        /D/   # features/step_definitions/steps.rb:4
          NOT MATCHED BY ANY STEPS
        
        3 scenarios (3 skipped)
        7 steps (7 skipped)
        0m0.012s

        """

Version data entries

47 entries across 45 versions & 9 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/features/stats_formatters.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/features/stats_formatters.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/features/stats_formatters.feature
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/features/stats_formatters.feature
cucumber-1.2.5 features/stats_formatters.feature
cucumber-1.2.3 features/stats_formatters.feature
cucumber-1.2.2 features/stats_formatters.feature
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/features/stats_formatters.feature
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/features/stats_formatters.feature
casecumber-1.0.2.1 features/stats_formatters.feature
casecumber-1.2.1.cb2 features/stats_formatters.feature
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/features/stats_formatters.feature
cucumber-1.2.1 features/stats_formatters.feature
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/stats_formatters.feature
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/features/stats_formatters.feature
cucumber-1.2.0 features/stats_formatters.feature
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/stats_formatters.feature
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/stats_formatters.feature
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/stats_formatters.feature
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/features/stats_formatters.feature