Issue#89 Note how users can try out Record Espresso Test tool
Point out that current Compose projects cannot do this. Note to the reader a branch on which they can freely start experimenting with Espresso Test Recording.
This commit is contained in:
parent
24bef1ba3e
commit
e39529b9e0
1 changed files with 5 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ In this testing instruction set you will learn how to write simple tests running
|
||||||
- We will use RuleChains to order our Test Rules.
|
- We will use RuleChains to order our Test Rules.
|
||||||
|
|
||||||
## Login UI Test
|
## Login UI Test
|
||||||
Instead of writing new tests from scratch, we will modify our existing Robolectric tests so they can be run on a Real Android device as well.
|
Instead of writing new tests from scratch, we will modify our existing Robolectric tests so they can be run on a Real Android device as well.N
|
||||||
For this we already have a `sharedTest` package.
|
For this we already have a `sharedTest` package.
|
||||||
|
|
||||||
Our classes will be `CodeKataAuthActivitySharedTest` and `CodeKataSharedRobotTest`.
|
Our classes will be `CodeKataAuthActivitySharedTest` and `CodeKataSharedRobotTest`.
|
||||||
|
|
@ -347,6 +347,10 @@ You might be thinking, then why did we go through how to do these stuff manually
|
||||||
|
|
||||||
All in all, it is a good tool to get started on your test, but you probably still need to do manual modifications on it. So personally I would suggest them for bigger tests, which would take too much time manually, and then do the adjustments while running the tests.
|
All in all, it is a good tool to get started on your test, but you probably still need to do manual modifications on it. So personally I would suggest them for bigger tests, which would take too much time manually, and then do the adjustments while running the tests.
|
||||||
|
|
||||||
|
> **Note: If you try it now, it will state that it is not compatible with Compose Projects.**
|
||||||
|
> So first switch to branch `TEST-HERE-Record-Espresso-Test` or commit `694d1bf0e71e40e80de849a3a6bb5e8a3430e348`.
|
||||||
|
> This is the last commit that still had no compose in it.
|
||||||
|
|
||||||
Okay, but how do we do it? As it's written on the site, we select `Run > Record Espresso Test`.
|
Okay, but how do we do it? As it's written on the site, we select `Run > Record Espresso Test`.
|
||||||
This will start the application on your device and you can do interactions with it. Such as writing into a text input.
|
This will start the application on your device and you can do interactions with it. Such as writing into a text input.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue