Sha256: 260ae0703c09205a4dcb6186676a5b733e9ea9e17f74614f372da5341865da53

Contents?: true

Size: 1.23 KB

Versions: 11

Compression:

Stored size: 1.23 KB

Contents

@spawn
Feature: Running multiple formatters

  When running cucumber, you are able to using multiple different
  formatters and redirect the output to text files.

  Scenario: Multiple formatters and outputs
    Given a file named "features/test.feature" with:
    """
    Feature: Lots of undefined

      Scenario: Implement me
        Given it snows in Sahara
        Given it's 40 degrees in Norway
        And it's 40 degrees in Norway
        When I stop procrastinating
        And there is world peace
    """
    When I run `cucumber --no-color --format progress --out progress.txt --format pretty --out pretty.txt --no-source --dry-run --no-snippets features/test.feature`
    Then the stderr should not contain anything
    Then the file "progress.txt" should contain:
      """
      UUUUU

      1 scenario (1 undefined)
      5 steps (5 undefined)

      """
    And the file "pretty.txt" should contain:
      """
      Feature: Lots of undefined

        Scenario: Implement me
          Given it snows in Sahara
          Given it's 40 degrees in Norway
          And it's 40 degrees in Norway
          When I stop procrastinating
          And there is world peace

      1 scenario (1 undefined)
      5 steps (5 undefined)

      """

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cucumber-2.0.0 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.rc.5 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.rc.4 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.rc.3 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.rc.2 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.rc.1 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.beta.5 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.beta.4 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.beta.3 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.beta.2 features/docs/cli/specifying_multiple_formatters.feature
cucumber-2.0.0.beta.1 features/docs/cli/specifying_multiple_formatters.feature