End-to-end testing of the Republik web presence
-
Install dependencies
npm install
-
Run headless Chrome test
TARGET_URL="http://target.url" npm test
(default islocalhost:3010
)
Execute npm run test:remote
and direct the browser manually to the address displayed
npm run test:mac
npm run test:win
npm run test:ios
-
Start Android emulator
-
npm run test:android
Run the sample in Chrome: npm run test:sample
The install script tries to fetch branches of the frontend and backend according to following logic:
FRONTEND_BRANCH || TRAVIS_BRANCH || 'master'
BACKENDS_BRANCH || TRAVIS_BRANCH || 'master'
If a branch is not available in a repo it will log it and use master
instead. You can trigger a custom build on travis-ci.com via more options and provide the branches with an custom config:
merge_mode: deep_merge
env:
global:
FRONTEND_BRANCH: serie2
BACKENDS_BRANCH: serie2