This project uses Jest Testing Framework for unit testing.
- Install all packages locally
npm install
- Run the test
npm run test
- allure commandline
- Node.js and npm
- Appium installed locally (in case if @wdio/appium-service will not work as expected)
- install appium e.g.
brew install appium
- install driver for ios
appium driver install xcuitest
- install driver for android
appium driver install uiautomator2
- install driver for chrome
appium driver install chromium
- install driver for safari
appium driver install safari
- install appium e.g.
- Android Emulator for Samsung Galaxy S23 Ultra is configured or iOS Simulator for iPhone 15 Pro / 15 Pro Max
- Create .env file in your local root project folder with APP_PATH, KERIA_IP property with path to app build for chosen platform
# Android
APP_PATH=<LOCAL_PATH/app-release-unsigned.apk>
KERIA_IP=<IP_V4>
# iOS
APP_PATH=<LOCAL_PATH/App.app>
KERIA_IP=<IP_V4>
This is required to connect the simulator to the locally running KERIA docker container on your machine.
ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | head -1 | awk '{ print $2 }'
ipconfig | findstr /R /C:"IPv4 Address"
ip addr show | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | head -1 | awk '{ print $2 }'
- Install all packages locally
npm install
- Run for chosen platform and phone e.g.:
- for all tests
npm run wdio:android:s23ultra
or
npm run wdio:ios:15promax
- for specific feature
npm run wdio:ios:15promax -- --spec ./tests/features/passcode.feature
- for specific scenario in feature you want to run it put a line number at which there is scenario title
npm run wdio:ios:15promax -- --spec ./tests/features/passcode.feature:18
- If there are issues with appium service run by WDIO, please start appium in terminal separately
- In case WDIO tests will not exit on its own kill the process yourself e.g.
pkill -9 -f wdio
- Generate allure report
allure generate tests/.reports/allure-results -o tests/.reports/allure-report --clean
- Open allure report
allure open tests/.reports/allure-report