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.
Install all packages
npm install
You just need to create a *.feature file under ./features/test/ folder. The test is written by using Gherkin Syntax.
// myTest.feature
Feature: 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"
npm run dev path-to-feature-file
npm test
npm run report
Thanks to Amiya Pattnaik
Read Cucumber Boilerplate for more examples.