Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dalenguyen/webdriveriov4-cucumber-typescript
WebdriverIO-v4 Cucumber BDD and TypeScript Boilerplate
https://github.com/dalenguyen/webdriveriov4-cucumber-typescript
automation bdd behavior-driven-development cucumber typescript webdriver webdriverio
Last synced: 18 days ago
JSON representation
WebdriverIO-v4 Cucumber BDD and TypeScript Boilerplate
- Host: GitHub
- URL: https://github.com/dalenguyen/webdriveriov4-cucumber-typescript
- Owner: dalenguyen
- Created: 2019-02-13T16:38:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T19:07:29.000Z (over 1 year ago)
- Last Synced: 2024-10-09T05:22:27.163Z (28 days ago)
- Topics: automation, bdd, behavior-driven-development, cucumber, typescript, webdriver, webdriverio
- Language: JavaScript
- Size: 384 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# WebdriverIO-v4 Cucumber BDD and TypeScript Boilerplate
This repository shows an example of how to combine WebdriverIO (v4), Cucumber and TypeScript in order to create a robust BDD test cases.
## Fetaures
+ WebdriverIO v4
+ Cucumber v5
+ Chai v4
+ TypeScript v3
+ Allure v2## Getting Started
Install all packages
```sh
npm install
```## How to write a test
You just need to create a *.feature file under __./features/test/__ folder. The test is written by using [Gherkin Syntax](https://docs.cucumber.io/gherkin/reference/).
```feature
// myTest.featureFeature: Is it Friday yet?
Everybody wants to know when it's Friday
Scenario: Sunday isn't Friday
Given today is Sunday
When I ask whether it's Friday yet
Then I should be told "Nope"
```## Run one test only
```sh
npm run dev path-to-feature-file
```## Run all the test
```sh
npm test
```## Show Allure report
```sh
npm run report
```## Referece
Thanks to [Amiya Pattnaik](https://github.com/amiya-pattnaik/webdriverIO-with-cucumberBDD)
Read [Cucumber Boilerplate](https://github.com/webdriverio/cucumber-boilerplate) for more examples.