-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.feature
More file actions
83 lines (71 loc) · 3.89 KB
/
test.feature
File metadata and controls
83 lines (71 loc) · 3.89 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Feature: test
Run feature tests
Scenario: Running all feature tests
When I run 'shellkin features/fixtures/features'
Then the output should include 'Feature: one'
And the output should include '3 scenarios, 0 failing'
And the exit code should mean success
Scenario: Running a failing test
When I run 'shellkin features/fixtures/selective/failing.feature'
Then the output should include 'Feature: two'
And the output should include '1 scenario, 0 passing, 1 failing'
And the exit code should mean failure
Scenario: Running a single feature file
When I run 'shellkin features/fixtures/features/one.feature'
Then the output should include 'Feature: one'
And the output should include '1 scenario, 0 failing'
And the exit code should mean success
Scenario: Using --default-target when TARGET is omitted
When I run 'shellkin --default-target features/fixtures/features'
Then the output should include 'Feature: one'
And the output should include '3 scenarios, 0 failing'
And the exit code should mean success
Scenario: Letting TARGET override --default-target
When I run 'shellkin --default-target features/fixtures/selective features/fixtures/features/one.feature'
Then the output should include 'Feature: one'
And the output should include '1 scenario, 0 failing'
And the exit code should mean success
Scenario: Using --default-target together with --stepdefs
When I run 'shellkin --default-target features/fixtures/configurable/sample.feature --stepdefs steps'
Then the output should include 'Feature: configurable fixture'
And the output should include '1 scenario, 0 failing'
And the exit code should mean success
Scenario: Loading multiple support files in order
When I run 'shellkin --stepdefs steps --load first_support.sh --load second_support.sh features/fixtures/configurable/load_order.feature'
Then the output should include 'hello world'
And the output should include '1 scenario, 0 failing'
And the exit code should mean success
Scenario: Running a feature that uses the star step keyword
When I run 'shellkin features/fixtures/selective/star_step.feature'
Then the output should include 'Feature: star step keyword'
And the output should include 'When I run'
And the output should include '* I run'
And the output should include '1 scenario, 0 failing'
And the exit code should mean success
Scenario: Continuing to the next scenario after a failure by default
When I run 'shellkin features/fixtures/selective/continue_after_failure.feature'
Then the output should include 'Scenario 1: first fails'
And the output should include 'Then the output should include'
And the output should include '(skipped)'
And the output should include 'Scenario 2: second still runs'
And the output should include '2 scenarios, 1 passing, 1 failing'
And the exit code should mean failure
Scenario: Skipping scenario steps after a failing background
When I run 'shellkin features/fixtures/selective/background_failure.feature'
Then the output should include 'Given setup fails'
And the output should include 'Then I announce'
And the output should include '(skipped)'
And the output should include '1 scenario, 0 passing, 1 failing'
And the exit code should mean failure
Scenario: Failing on a missing step definition
When I run 'shellkin features/fixtures/selective/missing_stepdef.feature'
Then the output should include 'Then I do not exist'
And the output should include ' - And I also should be skipped (skipped)'
And the output should include '1 scenario, 0 passing, 1 failing'
And the exit code should mean failure
Scenario: Printing doc string context for a failing step
When I run 'shellkin features/fixtures/selective/failing_doc_string.feature'
Then the output should include 'Feature: failing doc string'
And the output should include 'goodbye'
And the output should include '1 scenario, 0 passing, 1 failing'
And the exit code should mean failure