This project shows cool features in Webdriver.io along with Mocha Framework
Note: I recommed to use NVM to manage NodeJS versions
npm install
npx prettier --write .
npx wdio run test/config/${configuration}.conf.js --spec=test/specs/${testName}
where ${configuration}
could be:
- chrome (to run tests require Chrome)
- rest (to run API consumption tests)
- image (to run image comparison test)
where ${testName}
could be:
- geolocation.spec.js
- lighthouse.spec.js
- service.spec.js
- intercept.spec.js
- image.comparison.spec.js
If you want to generate Allure Reports
- Install allure command line:
npm install -g allure-commandline --save-dev
- Execute this command:
allure generate --clean && allure open