Skip to content

Commit 7375dce

Browse files
committed
use gotestsum for tests (shows all failed test outputs only)
1 parent 6fc5c15 commit 7375dce

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ jobs:
6464
- name: Build testcli binary
6565
working-directory: internal/testcli/
6666
run: go build
67-
- name: Compile library tests
68-
run: go test -race -failfast -v -x -c
67+
- name: Install gotestsum
68+
run: go install gotest.tools/gotestsum@latest
6969
- name: Run library tests
70-
run: ./frankenphp.test -test.v -test.failfast
70+
run: gotestsum -- -race ./...
7171
- name: Run Caddy module tests
7272
working-directory: caddy/
73-
run: go test -race -failfast -v ./...
73+
run: gotestsum -- -race ./...
7474
- name: Run Fuzzing Tests
7575
working-directory: caddy/
7676
run: go test -fuzz FuzzRequest -fuzztime 20s
@@ -172,8 +172,10 @@ jobs:
172172
} >> "${GITHUB_ENV}"
173173
- name: Build
174174
run: go build -tags nowatcher
175+
- name: Install gotestsum
176+
run: go install gotest.tools/gotestsum@latest
175177
- name: Run library tests
176-
run: go test -tags nowatcher -race -failfast -v ./...
178+
run: gotestsum -- -tags nowatcher -race ./...
177179
- name: Run Caddy module tests
178180
working-directory: caddy/
179-
run: go test -race -failfast -v ./...
181+
run: gotestsum -- -race ./...

0 commit comments

Comments
 (0)