https://github.com/nativescript-vue/nativescript-vue-ui-tests
A nativescript-vue application showcasing all elements, used to generate screenshots for the docs.
https://github.com/nativescript-vue/nativescript-vue-ui-tests
Last synced: 11 months ago
JSON representation
A nativescript-vue application showcasing all elements, used to generate screenshots for the docs.
- Host: GitHub
- URL: https://github.com/nativescript-vue/nativescript-vue-ui-tests
- Owner: nativescript-vue
- Created: 2017-10-01T15:02:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-17T14:49:08.000Z (about 7 years ago)
- Last Synced: 2025-04-05T22:32:34.832Z (about 1 year ago)
- Language: JavaScript
- Size: 9.26 MB
- Stars: 16
- Watchers: 1
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NativeScript-Vue UI tests
This project uses Appium to test Vue UI components, and also serves as a source for the
component screenshots at [nativescript-vue.org](https://nativescript-vue.org/).
## System requirements
* Node 7.6 or higher (for async function support).
* The [Appium](http://appium.io/) client. Just download and install the latest [from GitHub](https://github.com/appium/appium-desktop/releases/latest) or execute the following command:
```bash
npm install -g appium
```
### iOS requirements
* Carthage:
```bash
brew install carthage
````
## Running the tests locally
Start Appium, which is
* Using the desktop app, press 'Start the server'
* Using the NPM package, execute `appium` on a terminal
Otherwise you'll receive an error `127.0.0.1:4723` can't be reached.
### Android
Edit the `appium.capabilities.json` config file, in the `android23` section, with your device/emulators parameters, probably only the `avd` or `deviceName` parameters would be enough.
Start the tests:
```bash
npm run android.build
adb install ./platforms/android/app/build/outputs/apk/debug/app-debug.apk
npm run android.screenshots
```
### iOS
Edit the `appium.capabilities.json` config file, in the `ios-simulator103iPhone6` section, with your device/emulators parameters.
Build the iOS app
```bash
npm run ios.build
```
Start `XCode` and open the `platforms/ios/nativescriptvueuitests.xcodeproj` file.
Run the app on the emulator. This is needed in order to have the app installed.
Run the tests:
```bash
npm run ios.screenshots
```