Skip to content

nativescript-forks/nativescript-dev-appium

 
 

Repository files navigation

nativescript-dev-appium

A helper package to make running E2E Appium tests in NativeScript apps easier.

Usage

Install it with:

$ npm install --save-dev nativescript-dev-appium

Install Appium locally:

$ npm install --save-dev [email protected]

Or install appium globally (to avoid installing it for every app):

$ npm install -g [email protected]

After installation, you should have a sample test below the e2e-tests dir. Now, run it with:

$ npm run appium-android

or

$ npm run appium-ios-simulator

or

$ npm run appium-ios

All of the above commands will run a tns build command before running tests. If you have built your project already and wish to just run your tests, execute:

$ npm run appium --runType=android

Generated tests are standard Mocha tests.

Troubleshooting

Use the --verbose option to get error details:

$ npm run appium-android --verbose

or

$ npm run appium --runType=android --verbose

Missing features

  1. Faster developer turnaround when working on an app. Find a way to use livesync and kick off Appium tests for the app that's on the device already.

About

A package to help with running e2e tests in NativeScript apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.9%
  • JavaScript 7.1%