github.com/maps90/godog@v0.7.5-0.20170923143419-0093943021d4/features/multistep.feature (about) 1 Feature: run features with nested steps 2 In order to test multisteps 3 As a test suite 4 I need to be able to execute multisteps 5 6 Scenario: should run passing multistep successfully 7 Given a feature "normal.feature" file: 8 """ 9 Feature: normal feature 10 11 Scenario: run passing multistep 12 Given passing step 13 Then passing multistep 14 """ 15 When I run feature suite 16 Then the suite should have passed 17 And the following steps should be passed: 18 """ 19 passing step 20 passing multistep 21 """ 22 23 Scenario: should fail multistep 24 Given a feature "failed.feature" file: 25 """ 26 Feature: failed feature 27 28 Scenario: run failing multistep 29 Given passing step 30 When failing multistep 31 Then I should have 1 scenario registered 32 """ 33 When I run feature suite 34 Then the suite should have failed 35 And the following step should be failed: 36 """ 37 failing multistep 38 """ 39 And the following steps should be skipped: 40 """ 41 I should have 1 scenario registered 42 """ 43 And the following steps should be passed: 44 """ 45 passing step 46 """ 47 48 Scenario: should fail nested multistep 49 Given a feature "failed.feature" file: 50 """ 51 Feature: failed feature 52 53 Scenario: run failing nested multistep 54 Given failing nested multistep 55 When passing step 56 """ 57 When I run feature suite 58 Then the suite should have failed 59 And the following step should be failed: 60 """ 61 failing nested multistep 62 """ 63 And the following steps should be skipped: 64 """ 65 passing step 66 """ 67 68 Scenario: should skip steps after undefined multistep 69 Given a feature "undefined.feature" file: 70 """ 71 Feature: run undefined multistep 72 73 Scenario: run undefined multistep 74 Given passing step 75 When undefined multistep 76 Then passing multistep 77 """ 78 When I run feature suite 79 Then the suite should have passed 80 And the following step should be passed: 81 """ 82 passing step 83 """ 84 And the following step should be undefined: 85 """ 86 undefined multistep 87 """ 88 And the following step should be skipped: 89 """ 90 passing multistep 91 """ 92 93 Scenario: should match undefined steps in a row 94 Given a feature "undefined.feature" file: 95 """ 96 Feature: undefined feature 97 98 Scenario: parse a scenario 99 Given undefined step 100 When undefined multistep 101 Then I should have 1 scenario registered 102 """ 103 When I run feature suite 104 Then the suite should have passed 105 And the following steps should be undefined: 106 """ 107 undefined step 108 undefined multistep 109 """ 110 And the following step should be skipped: 111 """ 112 I should have 1 scenario registered 113 """ 114 115 Scenario: should mark undefined steps after pending 116 Given a feature "pending.feature" file: 117 """ 118 Feature: pending feature 119 120 Scenario: parse a scenario 121 Given pending step 122 When undefined step 123 Then undefined multistep 124 And I should have 1 scenario registered 125 """ 126 When I run feature suite 127 Then the suite should have passed 128 And the following steps should be undefined: 129 """ 130 undefined step 131 undefined multistep 132 """ 133 And the following step should be pending: 134 """ 135 pending step 136 """ 137 And the following step should be skipped: 138 """ 139 I should have 1 scenario registered 140 """