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
* Make sure your commit messages are in the proper format.
14
+
* Add tests for your changes and make them pass. How to run tests you can find in [Testing section](#Testing)
15
+
* Push your changes to a topic branch in your fork of the repository.
16
+
* Submit a pull request to the **nativescript-facebook** repository.
17
+
18
+
## <aname='Testing'> Testing </a>
19
+
20
+
There are three main points in order to get nativescript-facebook e2e UI tests running locally on iOS 10 Simulator and Android api 23 Emulator. Before that if you want to take a look at the tests and make some changes find them located in `demo/e2e-tests` folder.
21
+
22
+
Note, that all commands below assume you have installed npm packages in /src and /demo folders (`$ npm i`) and you are using OS X in order to use both iOS Simulator and Android emulator.
23
+
24
+
* Install Appium. Test execution depends on [nativescript-dev-appium](https://github.com/NativeScript/nativescript-dev-appium) plugin which is added as dev dependency in `demo` app folder and first command satisfies its requirement to have appium installed.
25
+
26
+
$ npm install -g appium@1.6.3
27
+
28
+
* Run Android emulator or/and iOS Simulator. For iOS appium will run simulator if such is not running. It is a requirement for appium that Android emulator has device name 'Android Emulator' and uses Android '6.0' version. For iOS Simulator you will need similator with device name 'iPhone 7 100' which is using iOS '10.0' version. These requirements come from the nativescript-dev-appium plugin and are still hardcoded in it, but notice that plugin itself is in development and the future plans are to become the ultimate testing tool for NativeScript plugins.
29
+
30
+
* Navigate to /src folder and execute:
31
+
32
+
$ npm run ci.uitest.android
33
+
34
+
or
35
+
36
+
$ npm run ci.uitest.ios
37
+
38
+
That's it. You should have running UI tests in your Simulator/Emulator.
0 commit comments