Skip to content

Commit 4c3cffd

Browse files
committed
Optionally log passed integration tests.
Set environment variable `METAFIX_LOG_PASSED=true`.
1 parent 86f7831 commit 4c3cffd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
run: chmod +x gradlew
1616
- name: Build with Gradle
1717
run: ./gradlew build
18+
env:
19+
METAFIX_LOG_PASSED: true
1820
- name: Install language server
1921
run: ./gradlew installServer
2022
- name: Install fix extension

metafix/integrationTest.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ function run_tests() {
186186

187187
((failed++)) || true
188188
else
189-
#log "$color_test$test$color_reset: ${color_passed}PASSED$color_reset$metafix_elapsed_time"
189+
if parse_boolean "$METAFIX_LOG_PASSED"; then
190+
log "$color_test$test$color_reset: ${color_passed}PASSED$color_reset$metafix_elapsed_time"
191+
fi
190192

191193
((passed++)) || true
192194
fi

0 commit comments

Comments
 (0)