You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+22-8
Original file line number
Diff line number
Diff line change
@@ -57,22 +57,36 @@ The repository contains several ingredients:
57
57
The last command also runs `npm prepare` which compiles the TypeScript files in the plugin.
58
58
You are good to go! You're strongly encouraged to follow the official NativeScript [Coding Conventions](https://github.com/NativeScript/NativeScript/blob/master/CodingConvention.md) and to use ES features available in NodeJS v6. If unsure, check on [node.green](http://node.green/).
59
59
60
-
## Testing locally
60
+
## Testing locally by running e2e tests
61
61
62
-
There are three apps in the repository, located in the `/demo` directory.
63
-
1. Create a new NativeScript project with NativeScript CLI:
62
+
NOTE: There are three test apps in the repository, located in the `/demo` directory. The steps below describe how to run the tests for the `AngularApp`, but the same approach can be used to run any other `e2e` tests.
63
+
64
+
1. Navigate to `demo/AngularApp`
64
65
``` bash
65
-
tns create testapp # pass --ng/--tsc for Angular/TypeScript app
66
+
cd demo/AngularApp
67
+
```
68
+
69
+
2. Install dependencies. This also installs your local copy of the nativescript-angular plugin.
70
+
``` bash
71
+
npm install
66
72
```
73
+
3. Make sure to have an emulator set up or connect a physical Android/iOS device.
3. Make sure to force-update the project's configuration files if it's already using Webpack.
80
+
5. Install [appium](http://appium.io/) globally.
81
+
``` bash
82
+
npm install -g appium
83
+
```
84
+
85
+
6. Follow the instructions in the [nativescript-dev-appium](https://github.com/nativescript/nativescript-dev-appium#custom-appium-capabilities) plugin to add an appium capability for your device inside `./e2e/renderer/e2e/config/appium.capabilities.json`.
86
+
87
+
7. Run the automated tests. The value of the `runType` argument should match the name of the capability that you just added.
0 commit comments