Skip to content

Commit e7e31f8

Browse files
Add stacktrace information if tests fail when running gradle tests
Found it more helpful in practice than --info or --debug PiperOrigin-RevId: 587045926
1 parent c089f25 commit e7e31f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
- name: 'Run gradle tests'
128128
run: |
129129
cd ${{ github.workspace }}/gradle-tests
130-
./gradlew nexusOneDebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --info
130+
./gradlew nexusOneDebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" --no-watch-fs --stacktrace
131131
shell: bash
132132
- name: 'Upload test reports'
133133
if: success() || failure()

kokoro/test_artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ apt-get install -y zulu17-jdk
1515
export JAVA_HOME="$(update-java-alternatives -l | grep "1.17" | head -n 1 | tr -s " " | cut -d " " -f 3)"
1616

1717
cd gradle-tests
18-
./gradlew nexusOneDebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect -Dandroid.experimental.androidTest.numManagedDeviceShards=1
18+
./gradlew nexusOneDebugAndroidTest --stacktrace -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect -Dandroid.experimental.androidTest.numManagedDeviceShards=1

0 commit comments

Comments
 (0)