Skip to content

Commit c9438f1

Browse files
committed
Makes tests report while running on CI systems (#602)
Will make it clearer if a test is hanging
1 parent bfc83b9 commit c9438f1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ install:
2929
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ./gradlew :ui:assemble --stacktrace || ./gradlew --stacktrace '
3030

3131
script:
32-
- ./gradlew check --stacktrace -Pheadless=true
32+
- ./gradlew check --stacktrace -Pheadless=true -PlogTests
3333

3434
after_success:
3535
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then codecov ; fi

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build_script:
66

77
# to run your custom scripts instead of automatic tests
88
test_script:
9-
- gradlew.bat check --stacktrace -Pheadless=true
9+
- gradlew.bat check --stacktrace -Pheadless=true -PlogTests
1010

1111
platform:
1212
- x64
@@ -28,4 +28,4 @@ deploy:
2828
appveyor_repo_tag: true # deploy on tag push only
2929

3030
cache:
31-
- C:\Users\appveyor\.gradle
31+
- C:\Users\appveyor\.gradle

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ allprojects {
140140
// Turn on test results
141141
test {
142142
testLogging {
143-
events "failed"
143+
if (project.hasProperty('logTests')) {
144+
events "started", "passed", "skipped", "failed"
145+
} else {
146+
events "failed"
147+
}
144148
exceptionFormat "full"
145149
}
146150
doFirst {

0 commit comments

Comments
 (0)