Browse Source

Merge pull request #5788 from linuxluser/patch-1

Ninja-fix formatting of CONTRIBUTING.md
Tobias Kaminsky 5 years ago
parent
commit
9aa8ec066b
1 changed files with 10 additions and 6 deletions
  1. 10 6
      CONTRIBUTING.md

+ 10 - 6
CONTRIBUTING.md

@@ -278,17 +278,21 @@ We use [shot](https://github.com/Karumi/Shot) for taking screenshots and compare
     - this will fire up docker & emulator to ensure that screenshots look the same
     - this will fire up docker & emulator to ensure that screenshots look the same
 - creating own UI comparision tests: 
 - creating own UI comparision tests: 
     - add IntentsTestRule for launching activity directly:
     - add IntentsTestRule for launching activity directly:
+
     ```java
     ```java
- @Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
+    @Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
                                                                                         true,
                                                                                         true,
                                                                                         false);
                                                                                         false);
-```
+    ```
+
     -  in test method:
     -  in test method:
+
     ```java 
     ```java 
-Activity activity = activityRule.launchActivity(null); 
-…do something, e.g. navigate, create folder, etc. … 
-  Screenshot.snapActivity(activity).record();
-  ```
+    Activity activity = activityRule.launchActivity(null); 
+    …do something, e.g. navigate, create folder, etc. … 
+     Screenshot.snapActivity(activity).record();
+    ```
+
     - best practise is to first create test with emulator too see behaviour and then create screenshots
     - best practise is to first create test with emulator too see behaviour and then create screenshots
 
 
 ## File naming
 ## File naming