| 1 |
@issue |
| 2 |
Feature: Issue #59 Fatal error when using --format=json |
| 3 |
|
| 4 |
Using the JSON formatter caused a fatal error. |
| 5 |
|
| 6 |
Background: Test Setup |
| 7 |
Given a new working directory |
| 8 |
And a file named "features/steps/steps.py" with: |
| 9 |
""" |
| 10 |
from behave import given |
| 11 |
|
| 12 |
@given(u'passing') |
| 13 |
def step(context): |
| 14 |
pass |
| 15 |
""" |
| 16 |
And a file named "features/issue59_test.feature" with: |
| 17 |
""" |
| 18 |
Feature: Passing tagged Scenario |
| 19 |
Scenario: P1 |
| 20 |
Given passing |
| 21 |
""" |
| 22 |
|
| 23 |
Scenario: Use the JSONFormatter |
| 24 |
When I run "behave --format=json features/issue59_test.feature" |
| 25 |
Then it should pass with: |
| 26 |
""" |
| 27 |
1 feature passed, 0 failed, 0 skipped |
| 28 |
1 scenario passed, 0 failed, 0 skipped |
| 29 |
""" |