Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f1e05d3

Browse files
committedJan 31, 2018
docs(CONTRIBUTING): update guide to add info about running e2e tests
1 parent 06ce695 commit f1e05d3

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed
 

‎CONTRIBUTING.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,35 @@ You are good to go! You're strongly encouraged to follow the official NativeScri
4747
4848
## Testing locally
4949
50-
There are three apps in the repository, located in the `/demo` directory.
51-
1. Create a new NativeScript project with NativeScript CLI:
50+
There are three apps in the repository, located in the `/demo` directory. After cloning the repository, you can run the automated tests for each of them with the following steps:
51+
52+
1. Navigate to one of the apps.
5253
``` bash
53-
tns create testapp # pass --ng/--tsc for Angular/TypeScript app
54+
cd nativescript-dev-webpack/demo/AngularApp
55+
```
56+
57+
2. Install dependencies. This also installs your local copy of the nativescript-dev-webpack plugin.
58+
``` bash
59+
npm install
5460
```
5561
56-
2. Install your local copy of the plugin.
62+
3. Install appium globally.
5763
``` bash
58-
npm install /path/to/repo/nativescript-dev-webpack
64+
npm install -g appium
5965
```
6066
61-
3. Make sure to force-update the project's configuration files if it's already using Webpack.
67+
4. Create an emulator or connect a physical Android/iOS device.
68+
69+
5. Build the app for Android or iOS.
70+
```bash
71+
tns run android/ios
72+
```
73+
74+
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/config/appium.capabilities.json`.
75+
76+
7. Run the automated tests. The value of the `runType` argument should match the name of the capability that you just added.
6277
``` bash
63-
./node_modules/.bin/update-ns-webpack --deps --configs
78+
npm run e2e -- --runType capabilityName
6479
```
6580
6681
## Reporting Bugs

0 commit comments

Comments
 (0)
This repository has been archived.