Debian Codegraph @

issue.features/issue0606.feature

raw
1 @issue
2 Feature: Issue #606 -- Name option with special unicode chars
3
4
5 Background:
6 Given a new working directory
7 And a file named "features/alice.feature" with:
8 """
9 Feature: Alice
10
11 Scenario: Ärgernis ist überall
12 Given a step passes
13
14 Scenario: My second Ärgernis
15 When another step passes
16
17 Scenario: Unused
18 Then some step passes
19 """
20 And a file named "features/steps/passing_steps.py" with:
21 """
22 from behave import step
23
24 @step(u'{word:w} step passes')
25 def step_passes(context, word):
26 pass
27 """
28 And a file named "behave.ini" with:
29 """
30 [behave]
31 show_timings = false
32 """
33
34 Scenario: Use special unicode chars in --name options
35 When I run "behave -f plain --name Ärgernis features/"
36 Then it should pass with:
37 """
38 1 feature passed, 0 failed, 0 skipped
39 2 scenarios passed, 0 failed, 1 skipped
40 2 steps passed, 0 failed, 1 skipped, 0 undefined
41 """
42 And the command output should contain:
43 """
44 Scenario: Ärgernis ist überall
45 Given a step passes ... passed
46
47 Scenario: My second Ärgernis
48 When another step passes ... passed
49 """
50 But the command output should not contain:
51 """
52 UnicodeDecodeError: 'ascii' codec can't decode byte
53 """