Skip to content

Commit 01f138a

Browse files
authored
Ninja-fix formatting of CONTRIBUTING.md
1 parent 5e2241d commit 01f138a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

CONTRIBUTING.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,21 @@ We use [shot](https://github.com/Karumi/Shot) for taking screenshots and compare
278278
- this will fire up docker & emulator to ensure that screenshots look the same
279279
- creating own UI comparision tests:
280280
- add IntentsTestRule for launching activity directly:
281+
281282
```java
282-
@Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
283+
@Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
283284
true,
284285
false);
285-
```
286+
```
287+
286288
- in test method:
289+
287290
```java
288-
Activity activity = activityRule.launchActivity(null);
289-
do something, e.g. navigate, create folder, etc. …
290-
Screenshot.snapActivity(activity).record();
291-
```
291+
Activity activity = activityRule.launchActivity(null);
292+
do something, e.g. navigate, create folder, etc. …
293+
Screenshot.snapActivity(activity).record();
294+
```
295+
292296
- best practise is to first create test with emulator too see behaviour and then create screenshots
293297

294298
## File naming

0 commit comments

Comments
 (0)