OLD | NEW |
1 # Testing | 1 # Testing |
2 | 2 |
3 Blimp only supports building using [GN](../../tools/gn/README.md), and only | 3 Blimp only supports building using [GN](../../tools/gn/README.md), and only |
4 supports building for Android and Linux. See [building](build.md) for general | 4 supports building for Android and Linux. See [building](build.md) for general |
5 GN setup. | 5 GN setup. |
6 | 6 |
7 ## Testing on Android | 7 ## Testing on Android |
8 | 8 |
9 Run the following command to build the Android tests: | 9 Run the following command to build the Android tests: |
10 | 10 |
11 ```bash | 11 ```bash |
12 ninja -C out-android/Debug blimp_tests | 12 ninja -C out-android/Debug blimp chrome_public_test_apk |
13 ``` | 13 ``` |
14 | 14 |
15 ### Running the Java instrumentation tests | 15 ### Running the Java instrumentation tests |
16 | 16 |
17 Install the Blimp APK with the following: | 17 Install the Blimp APK with the following: |
18 | 18 |
19 ```bash | 19 ```bash |
20 ./build/android/adb_install_apk.py $(PRODUCT_DIR)/apks/Blimp.apk | 20 ./build/android/adb_install_apk.py $(PRODUCT_DIR)/apks/Blimp.apk |
21 ``` | 21 ``` |
22 | 22 |
23 Run the Java instrumentation tests (with an optional test filter) with the | 23 Install the Chrome Public APK with the following: |
24 following: | 24 |
| 25 ```bash |
| 26 ./build/android/adb_install_apk.py $(PRODUCT_DIR)/apks/ChromePublic.apk |
| 27 ``` |
| 28 |
| 29 Run the Blimp Java instrumentation tests (with an optional test filter) with |
| 30 the following: |
25 | 31 |
26 ```bash | 32 ```bash |
27 $(PRODUCT_DIR)/bin/run_blimp_test_apk [ -f DummyTest#* ] | 33 $(PRODUCT_DIR)/bin/run_blimp_test_apk [ -f DummyTest#* ] |
28 ``` | 34 ``` |
29 | 35 |
| 36 Run the Chrome Public Java instrumentation tests (with an optional test filter) |
| 37 with the following: |
| 38 |
| 39 ```bash |
| 40 $(PRODUCT_DIR)/bin/run_chrome_public_test_apk [ -f DummyTest#* ] |
| 41 ``` |
| 42 |
30 ### Testing on Linux | 43 ### Testing on Linux |
31 | 44 |
32 Run the following command to build the Linux tests: | 45 Run the following command to build the Linux tests: |
33 | 46 |
34 ```bash | 47 ```bash |
35 ninja -C out-linux/Debug blimp_tests | 48 ninja -C out-linux/Debug blimp |
36 ``` | 49 ``` |
37 | 50 |
38 There are no tests that run on Linux yet. | 51 Run the following command to run the Blimp Linux unit tests: |
| 52 |
| 53 ```bash |
| 54 ./out-linux/Debug/blimp_unittests |
| 55 ``` |
| 56 |
| 57 Run the following command to run the Blimp Linux browser tests: |
| 58 |
| 59 ```bash |
| 60 ./out-linux/Debug/blimp_browsertests |
| 61 ``` |
OLD | NEW |