Skip to content

Commit

Permalink
#10 add more features for reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
kosalaperera committed Sep 8, 2019
1 parent 9ed2a8d commit 13da769
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/
docs/
public/
File renamed without changes.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ What's included:
- Gherkin style [Features, Backgrounds, Scenarios, Examples with Data tables](https://github.com/kosalanuwan/todomvc-cucumberjs/tree/master/features), and [Tags with Hooks](https://github.com/kosalanuwan/todomvc-cucumberjs/tree/master/hooks) to `@skip` / `@ignore` / `@deprecated`
- Written beyond Page Objects and close enough to Screenplay pattern
- Uses our favorite [Todo MVC Web App](http://todomvc.com/examples/vanillajs/) to demo E2E tests
- Generates an [html report](https://github.com/wswebcreation/protractor-multiple-cucumber-html-reporter-plugin) with detailed analysis on the test results including screenshots
- Provides an [HTML Report](public/report/index.html) with detailed analysis on the test results including screenshots
- Uses [`protractor`](https://www.protractortest.org/) + [`cucumberjs`](https://github.com/cucumber/cucumber-js/) frameworks
- Configured to run in [`Headless chrome`](https://github.com/kosalanuwan/todomvc-cucumberjs/tree/master/config) as well as in [`Slow-Mo modes`](https://github.com/kosalanuwan/todomvc-cucumberjs/tree/master/config)
- Uses ptor plugins to wire [`chai-as-promised`](https://www.chaijs.com/plugins/chai-as-promised/) and `browser` configurations
Expand Down Expand Up @@ -135,8 +135,9 @@ todomvc-cucumberjs
│ └── index.html # Main page of the test report
├── .babelrc # Defines presets for Modern Javascript support
├── .eslintignore # Everything that must be excluded from coding styles
├── .eslintrc.yml # Defines javascript coding styles
├── .gitignore # Everything that must not be in this repo
├── .gitignore # Everything that must be excluded from the git repo
├── .npmrc # Node configurations for workspace
├── package.json # Our javascript and node dependencies
└── README.md # This file!
Expand Down
6 changes: 3 additions & 3 deletions features/add-more-new-todos.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# language: en
@search @functional @gui @uat
@todo-managing @functional @gui @uat
Feature: Adding more things to do to the list
In order to avoid having to remember things that needs to do
KP wants to records all the things needs to get done.

@regression @integration @ci @deprecated
@regression @integration @ci
Scenario Outline: Add more new items to the todo list

Given that KP has a list of things to do such as "<todo-list>"
Expand All @@ -17,8 +17,8 @@ Feature: Adding more things to do to the list
@smoke
Examples:
| todo-list | more-todos | nr-of-todos | total-nr-of-todos |
| Buy some cookies, Walk the dog, Buy some cereal | Go to Yoga, Meet the shrink | 3 | 5 |
| Smile more often, Drink more water, Eat a banana | Quit the job, Sleep early, Eat a banana | 3 | 6 |
| Join the 5AM Club, Join the Audible Inner-circle | Go to Yoga, Meet the shrink | 2 | 4 |
| Sprint retrospective starts 2pm, Tech talk starts 6pm | Write some code, Do some demos, Smile more often, Drink more water | 4 | 6 |

@sanity @security
Expand Down
25 changes: 25 additions & 0 deletions features/mark-todos-as-done.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# language: en
@todo-managing @functional @gui @uat @wip
Feature: Ticking off todos when they are Done
In order to avoid having to remember things that needs to do
KP wants to records all the things needs to get done.

@regression @integration @ci
Scenario Outline: Mark items in the todo list as done

Given that KP has a list of things to do such as "<todo-list>"
When he marks "<done-todos>" in the list as done
And he looks at all things to do
Then he shall see the number of todos should at least be <nr-of-todos>

@smoke
Examples:
| todo-list | done-todos | nr-of-todos |
| Buy some cookies, Walk the dog, Buy some cereal | Walk the dog, Buy some cereal | 1 |
| Smile more often, Drink more water, Eat a banana | Drink more water | 2 |
| Write some code, Do some demos, Smile more often, Drink more water | Write some code, Do some demos | 2 |

@sanity @security
Examples:
| todo-list | done-todos | nr-of-todos |
| Join the 5AM Club, Join the Audible Inner-circle | Join the Audible Inner-circle | 2 |
7 changes: 4 additions & 3 deletions features/start-using-todo-list.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# language: en
@search @functional @gui @uat
@todo-onboarding @functional @gui @uat
Feature: Start using a fresh todo list
In order to avoid having to remember things that needs to do
KP wants to records all the things needs to get done.
Expand All @@ -19,12 +19,13 @@ Feature: Start using a fresh todo list

@smoke
Examples:
| some-todo-list | new-todo-list | nr-of-todos |
| some-todo-list | new-todo-list | nr-of-todos |
| Buy some cookies, Walk the dog, Buy some cereal | Go to Yoga, Meet the shrink | 3 |
| Quit the job, Sleep early, Eat a banana | Smile more often, Drink more water, Eat a banana | 3 |
| Go to Yoga, Meet the shrink | Join the 5AM Club, Join the Audible Inner-circle | 2 |
| Write some code, Do some demos, Smile more often, Drink more water | Sprint retrospective starts 2pm, Tech talk starts 6pm | 2 |

@sanity @security
Examples:
| some-todo-list | new-todo-list | nr-of-todos |
| some-todo-list | new-todo-list | nr-of-todos |
| Go to Yoga, Meet the shrink | Join the 5AM Club, Join the Audible Inner-circle | 2 |

0 comments on commit 13da769

Please sign in to comment.