ionic3-seed-protractor
ionic3-seed-protractor copied to clipboard
Ionic 3 + Karma + Protractor + Appium
Ionic 3 seed
This is a seed of Ionic 3 with TypeScript + Karma + Protractor + Appium
Table of Contents
- Getting Started
- Run in browser
- Run in Android
- Run in iOS
- Run Unit tests
- Run E2E tests
- Run all tests
- Contribute
Getting Started
- Install Node.js (recommended: use nvm to install)
- Install the ionic CLI and Cordova CLI (
npm install -g ionic cordova
) - Clone this repository
- Run
npm install
from the project root - Use the commands below
Run in browser
# only works if no native APIs are being used
npm start # deploys the the browser
Run in Android
# make sure the Android device/emulator is connected and available to ADB
npm run android # deploys the app to an Android device or emulator
Run in iOS
# make sure the iOS device is connected
npm run ios # deploys the app to an iOS device or simulator
Run Unit tests
npm run unittest # run unit tests on the browser
Run E2E tests
npm run appium # run start appium server
npm run e2e # in other terminal, run the e2e tests on the device
Run all tests
npm run appium # run start appium server
npm test # in other terminal, run the unit tests on the browser and e2e tests on the device
Contribute
Issues and PRs are welcome, see the issues list.