Debian Codegraph @

issue.features/issue0142.feature

raw
1 @issue
2 @not_reproducible
3 Feature: Issue #142: --junit flag fails to output with step table data: TypeError: <Row [u'data', u'value']> is not JSON serializable
4
5 DUPLICATES: issue #67 (already fixed).
6
7 Scenario:
8 Given a new working directory
9 And a file named "features/steps/steps.py" with:
10 """
11 from behave import given, when, then, step
12
13 @then('use table data with')
14 def step_impl(context):
15 pass
16 """
17 And a file named "features/issue0142_example.feature" with:
18 """
19 Feature:
20 Scenario: Use a table
21 Then use table data with:
22 | data | value |
23 | behave outputs junit with tables | false |
24 """
25 When I run "behave --junit -f json features/issue0142_example.feature"
26 Then it should pass
27 But the command output should not contain:
28 """
29 TypeError: <Row [u'behave outputs junit with tables', u'false']> is not JSON serializable
30 """
31 And the command output should not contain:
32 """
33 Traceback (most recent call last):
34 """
35
36
37