Skip to content

Commit b5846d9

Browse files
author
Chris Dawson
committed
Add proper documentation for secrets file
1 parent 9fa17a4 commit b5846d9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

chapter-7-android-and-git-data/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,24 @@ ANDROID_HOME=~/Android/Sdk \
2525

2626
This single test proves that our GitHub client Java code makes a new file inside the Jekyll repository
2727
and then views the published post.
28+
29+
To run the espresso test, you will need to create a `secrets.xml` file inside `app/src/main/res/values`.
30+
This file should contain the same username and password and look like this:
31+
32+
```
33+
<?xml version="1.0" encoding="utf-8"?>
34+
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
35+
<string name="github_helper_username">BurningOnUp</string>
36+
<string name="github_helper_password">somethingOrOther</string>
37+
</resources>
38+
```
39+
40+
Then, to run the tests, use this command:
41+
42+
```
43+
GITHUB_HELPER_USERNAME=BurningOnUp \
44+
GITHUB_HELPER_PASSWORD=somethingOrOther \
45+
JAVA_HOME=~/bin/jdk1.7.0_79 \
46+
ANDROID_HOME=~/Android/Sdk \
47+
./gradlew connectedTest
48+
```

0 commit comments

Comments
 (0)