Sha256: adcd8645b760a50b69ce2f28975c3519872dc34d11481bd496f16ae47dd84405

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

@issue
@not_reproducible
Feature: Issue #142: --junit flag fails to output with step table data: TypeError: <Row [u'data', u'value']> is not JSON serializable

      DUPLICATES: issue #67 (already fixed).

  Scenario:
    Given a new working directory
    And a file named "features/steps/steps.py" with:
        """
        from behave import given, when, then, step

        @then('use table data with')
        def step_impl(context):
            pass
        """
    And a file named "features/issue0142_example.feature" with:
        """
        Feature:
            Scenario: Use a table
             Then use table data with:
                 | data                             | value |
                 | behave outputs junit with tables | false |
        """
    When I run "behave --junit -f json features/issue0142_example.feature"
    Then it should pass
    But the command output should not contain:
        """
        TypeError: <Row [u'behave outputs junit with tables', u'false']> is not JSON serializable
        """
    And the command output should not contain:
        """
        Traceback (most recent call last):
        """



Version data entries

1 entries across 1 versions & 1 rubygems

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