From f1b35056de527d50180d67c0ab973bb3f3ea3329 Mon Sep 17 00:00:00 2001 From: Mark Wolfe Date: Sun, 17 Sep 2023 16:53:33 +1000 Subject: [PATCH] feat(tests): enable a coverage report for the integration tests https://go.dev/testing/coverage/ --- .github/workflows/go.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 92da7a7..f17a532 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -44,6 +44,9 @@ jobs: GOFLAGS: "-v -count=1 -json" run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY - - name: Run Integration Tests - run: go test -v ./... - working-directory: integration + - name: Integration Test + env: + COVER_OPTS: "-coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/wolfeidau/s3iofs" + GOFLAGS: "-v -count=1 -json" + run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY + working-directory: integration \ No newline at end of file