Sha256: 6f9dc185c442ca084ce721e911b586cc2f3a91d46a8291de497e0076738b5678

Contents?: true

Size: 1016 Bytes

Versions: 1

Compression:

Stored size: 1016 Bytes

Contents

@issue
Feature: Issue #462-- Invalid JSON output when --include option selects no features

  . Invalid JSON output is generated when no features are selected in a test-run.
  . For example, this may be the case when the --include option is used.


    Background:
      Given a new working directory
      And a file named "features/steps/pass_steps.py" with:
        """
        from behave import step

        @step('{word:w} step passes')
        def step_passes(context, word):
            pass
        """
      And a file named "features/passing.feature" with:
        """
        Feature:
          Scenario:
            Given a step passes
        """


    Scenario: Include Option selects no feature files
      When I run "behave -f json -i __unknown__.feature"
      Then it should pass with:
        """
        0 features passed, 0 failed, 0 skipped
        0 scenarios passed, 0 failed, 0 skipped
        """
      And the command output should contain:
        """
        [
        ]
        """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
busser-behave-0.1.3 vendor/behave/issue.features/issue0462.feature