Name Date Size #Lines LOC

..--

src/H25-Apr-2025-6,7584,737

README.mdH A D25-Apr-20251.2 KiB5238

build.gradleH A D25-Apr-20253.6 KiB125108

proguard-rules.proH A D25-Apr-2025916 2723

start-emulator.shH A D25-Apr-2025307 147

wait-for-emulator.shH A D25-Apr-2025361 1712

README.md

1gRPC Android test App
2=======================
3
4Implements gRPC integration tests in an Android App.
5
6In order to build this app, you need a local.properties file under this directory which specifies
7the location of your android sdk:
8```
9sdk.dir=/somepath/somepath/sdk
10```
11
12Connect your Android device or start the emulator:
13```
14$ ./start-emulator.sh <AVD name> & ./wait-for-emulator.sh
15```
16
17Start test server
18-----------------
19
20Start the test server by:
21```
22$ ../run-test-server.sh
23```
24
25
26Manually test
27-------------
28
29Install the App by:
30```
31$ ../gradlew installDebug
32```
33Then manually test it with the UI.
34
35
36Instrumentation tests
37----------------
38
39Instrumentation tests must be run on a connected device or emulator. Run with the
40following gradle command:
41
42```
43$ ../gradlew connectedAndroidTest \
44    -Pandroid.testInstrumentationRunnerArguments.server_host=10.0.2.2 \
45    -Pandroid.testInstrumentationRunnerArguments.server_port=8080 \
46    -Pandroid.testInstrumentationRunnerArguments.use_tls=true \
47    -Pandroid.testInstrumentationRunnerArguments.server_host_override=foo.test.google.fr \
48    -Pandroid.testInstrumentationRunnerArguments.use_test_ca=true \
49    -Pandroid.testInstrumentationRunnerArguments.test_case=all
50```
51
52