-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…-features Gh 18 roll up steps to scenarios to features
- Loading branch information
Showing
27 changed files
with
1,115 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,7 @@ reports/**/*.html | |
.nyc_output/ | ||
.coveralls.yml | ||
*.tgz | ||
|
||
e2e/reportOutput | ||
# Transpiled E2E | ||
e2e/**/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ env: | |
node_js: | ||
- '8.12' | ||
script: | ||
- npm ci | ||
- npm run ci | ||
|
||
branches: | ||
except: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,52 @@ | ||
Ability: View report summary | ||
Ability: View report summary | ||
|
||
As a user | ||
I would like to see the summary of features and scenarios in my project | ||
So that I can gauge my project's health and progress. | ||
|
||
Scenario: Feature summary | ||
The status of a Scenario behaves like a hierarchy that rolls up. | ||
The scenario status will be the 'worst' status of its child steps as follows: | ||
ambiguous, failed, undefined, pending, passed | ||
Although a step can be skipped, a scneario cannot. | ||
|
||
Ambiguous is the worst because it is similar to a compile erorr. There are | ||
two or more implementations that match one step, and the test simply can't be run. | ||
|
||
Failed is next because a step has been implemented, and failed, which is unexpected. | ||
|
||
Undefined is then next, because no implementation has been put together. | ||
|
||
Pending is where the implementation exists, but returns the string pending. | ||
|
||
Finally, if all steps pass, then the scenario passes. | ||
|
||
Scenario: All passing | ||
Given a passing scenario | ||
| Feature | Scenario | Step | Step Status | | ||
| Feature One | Scenario One | Step 1 | passed | | ||
| Feature One | Scenario One | Step 2 | passed | | ||
| Feature One | Scenario One | Step 3 | passed | | ||
When I run yachr against it | ||
Then a summary showing one passing feature and one passing scenario | ||
|
||
Scenario: Handle mixed states | ||
Given the following scenarios | ||
| Feature | Scenario | Step | Step Status | | ||
| Feature One | Scenario One | Step 1 | passed | | ||
| Feature One | Scenario One | Step 2 | ambiguous | | ||
|
||
| Feature Two | Scenario One | Step 1 | passed | | ||
| Feature Two | Scenario One | Step 2 | failed | | ||
|
||
| Feature Three | Scenario One | Step 1 | passed | | ||
| Feature Three | Scenario One | Step 2 | pending | | ||
|
||
| Feature Four | Scenario One | Step 1 | undefined | | ||
|
||
When I run yachr against it | ||
Then I will see the following in the summary | ||
| Feature | Status | | ||
| Feature One | ambiguous | | ||
| Feature Two | failed | | ||
| Feature three | pending | | ||
| Feature four | undefined | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[ | ||
{ | ||
"description": "Feature One", | ||
"keyword": "Ability", | ||
"name": "View report summary", | ||
"id": "view-report-summary", | ||
"tags": [], | ||
"elements": [ | ||
{ | ||
"id": "view-report-summary;feature-summary", | ||
"keyword": "Scenario", | ||
"line": 7, | ||
"name": "Feature summary", | ||
"tags": [], | ||
"type": "scenario", | ||
"steps": [ | ||
{ | ||
"arguments": [], | ||
"keyword": "Given ", | ||
"result": { | ||
"status": "passed", | ||
"duration": 1000000 | ||
} | ||
}, | ||
{ | ||
"arguments": [], | ||
"keyword": "Then", | ||
"result": { | ||
"status": "ambigious", | ||
"duration": 1000000 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "Feature Two", | ||
"keyword": "Ability", | ||
"name": "View report summary", | ||
"id": "view-report-summary", | ||
"tags": [], | ||
"elements": [ | ||
{ | ||
"id": "view-report-summary;feature-summary", | ||
"keyword": "Scenario", | ||
"line": 7, | ||
"name": "Feature summary", | ||
"tags": [], | ||
"type": "scenario", | ||
"steps": [ | ||
{ | ||
"arguments": [], | ||
"keyword": "Given ", | ||
"result": { | ||
"status": "passed", | ||
"duration": 1000000 | ||
} | ||
}, | ||
{ | ||
"arguments": [], | ||
"keyword": "Then", | ||
"result": { | ||
"status": "failed", | ||
"duration": 1000000 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.