| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
Install your native toolchain and NativeScript as described in the docs:
https://docs.nativescript.org/setup/quick-setup
$ git clone git@github.com:NativeScript/nativescript-angular.git $ cd nativescript-angular
$ cd nativescript-angular $ npm install
Install NPM packages (use the local copy of nativescript-angular):
$ cd ng-sample $ npm install
Start the app:
$ tns run android $ tns run ios
Install the NPM dependencies (use the local copy of nativescript-angular):
$ cd tests $ npm install
Run the tests:
$ tns test ios $ tns test android
NOTE: The steps below describe how to run renderer tests, but the same approach can be used to run router or any other e2e tests.
Navigate to e2e/renderer
cd e2e/rendererInstall dependencies. This also installs your local copy of the nativescript-angular plugin.
npm installMake sure to have an emulator set up or connect a physical Android/iOS device.
Build the app for Android or iOS
tns run android/iosInstall appium globally.
npm install -g appiumFollow the instructions in the nativescript-dev-appium plugin to add an appium capability for your device inside ./e2e/renderer/e2e/config/appium.capabilities.json.
Run the automated tests. The value of the runType argument should match the name of the capability that you just added.
npm run e2e -- --runType capabilityName| Back | FazBrowse Home | New Git URL |