| 1 |
@issue |
| 2 |
Feature: Issue #152: Fix encoding issues |
| 3 |
|
| 4 |
. I fixed two encoding issues in pretty formatter and in JUnit serialization. |
| 5 |
. Now it's possible to use accented letters in feature files and |
| 6 |
. create JUnit reports from the tests. |
| 7 |
|
| 8 |
|
| 9 |
Scenario: Ensure JUnit reports can be created from a foreign language |
| 10 |
Given a new working directory |
| 11 |
And an empty file named "features/steps/steps.py" |
| 12 |
And a file named "features/eins.feature" with: |
| 13 |
""" |
| 14 |
# language: de |
| 15 |
Funktionalität: Die Welt ist schön |
| 16 |
Szenario: Was wäre wenn die schöne, neue Welt untergeht |
| 17 |
""" |
| 18 |
When I run "behave -f plain --junit --no-timings features/eins.feature" |
| 19 |
Then it should pass with: |
| 20 |
""" |
| 21 |
1 feature passed, 0 failed, 0 skipped |
| 22 |
1 scenario passed, 0 failed, 0 skipped |
| 23 |
0 steps passed, 0 failed, 0 skipped, 0 undefined |
| 24 |
""" |
| 25 |
And the command output should contain: |
| 26 |
""" |
| 27 |
Funktionalität: Die Welt ist schön |
| 28 |
Szenario: Was wäre wenn die schöne, neue Welt untergeht |
| 29 |
""" |
| 30 |
|
| 31 |
|
| 32 |
@reuse.colocated_test |
| 33 |
Scenario: Ensure JUnit reports can be created from a foreign language |
| 34 |
Given I use the current directory as working directory |
| 35 |
When I run "behave -f plain --junit --no-timings tools/test-features/french.feature" |
| 36 |
Then it should pass with: |
| 37 |
""" |
| 38 |
1 feature passed, 0 failed, 0 skipped |
| 39 |
2 scenarios passed, 0 failed, 0 skipped |
| 40 |
5 steps passed, 0 failed, 0 skipped, 0 undefined |
| 41 |
""" |
| 42 |
And the command output should contain: |
| 43 |
""" |
| 44 |
Fonctionnalité: testing stuff |
| 45 |
Scénario: test stuff |
| 46 |
Etant donné I am testing stuff ... passed |
| 47 |
Quand I exercise it work ... passed |
| 48 |
Alors it will work ... passed |
| 49 |
Scénario: test more stuff |
| 50 |
Etant donné I am testing stuff ... passed |
| 51 |
Alors it will work ... passed |
| 52 |
""" |