File: issue0142.feature

package info (click to toggle)
behave 1.2.6-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,160 kB
  • sloc: python: 19,857; makefile: 137; sh: 18
file content (37 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@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):
        """