Skip to content

Commit

Permalink
run tests with gotestsum
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkruger committed Dec 3, 2024
1 parent badef94 commit 9723b1e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,23 @@ jobs:
- name: Install dependencies
run: go mod tidy

- name: Run tests
run: go test ./... -coverprofile=coverage.out
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest

- name: Run tests with gotestsum
run: |
mkdir -p ${{ github.workspace }}/artifacts
mkdir -p ${{ github.workspace }}/reports
GONFALON_MODE=test \
gotestsum --packages="./..." \
--junitfile ${{ github.workspace }}/reports/go-test_go_tests.xml \
--jsonfile ${{ github.workspace }}/artifacts/go-test_go_tests.json \
--rerun-fails=2 \
--rerun-fails-max-failures=10 \
--rerun-fails-report ${{ github.workspace }}/artifacts/rerun_tests_go_tests.txt \
-- -tags=launchdarkly_easyjson -p=1

e2e-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9723b1e

Please sign in to comment.