mirror of
https://github.com/status-im/wiki.status.im.git
synced 2025-02-23 17:48:21 +00:00
commit
e7a7118dcf
@ -6,14 +6,24 @@ Please try to be as descripive as possible.
|
|||||||
|
|
||||||
## For Developers
|
## For Developers
|
||||||
|
|
||||||
To run appium tests:
|
### UI (Appium) tests
|
||||||
|
|
||||||
1. install appium `npm install -g appium`
|
To run the tests:
|
||||||
2. start appium server in new tab `appium &`
|
|
||||||
3. start application on emulator or real device
|
|
||||||
4. run tests `lein test`
|
|
||||||
|
|
||||||
To run unit tests execute:
|
1. Install appium: run `npm install -g appium`
|
||||||
|
2. Start application on emulator or real device ([more details here](https://wiki.status.im/contributing/development/building-status/#build-and-test))
|
||||||
|
3. Start appium server in new tab: run `appium --session-override`
|
||||||
|
4. Run `lein test`
|
||||||
|
|
||||||
|
Hints / Gotchas:
|
||||||
|
|
||||||
|
- Confirmed working using Appium version 1.6.1.
|
||||||
|
- To find an element easily in the tests, use the `:accessibility-label` property in the respective Reagent component.
|
||||||
|
- When querying an element by its inner text, be sure to use the whole text that the element is supposed to contain (it won't match just a part of the text).
|
||||||
|
|
||||||
|
### Unit tests
|
||||||
|
|
||||||
|
To run the unit tests execute:
|
||||||
|
|
||||||
`lein doo node test once`
|
`lein doo node test once`
|
||||||
or
|
or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user