Skip to content

Commit

Permalink
cover: remove example directory from code coverage
Browse files Browse the repository at this point in the history
Remove example directory from code coverage explicitly since after #26 it
started being considered on the code coverage report and we don't want that.
  • Loading branch information
henvic committed Sep 19, 2024
1 parent b5852d6 commit 3a02507
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:

- name: Test
# TODO(henvic): Skip generating code coverage when not sending it to Coveralls to speed up testing.
# Remove example directory from code coverage explicitly since after #26 it
# started being considered on the code coverage report and we don't want that.
continue-on-error: ${{ matrix.os != 'ubuntu-latest' || matrix.go != '1.23.x' }}
run: go test -race -covermode atomic -coverprofile=profile.cov ./...
run: |
go test -race -covermode atomic -coverprofile=profile.cov ./...
sed -i '/^github\.com\/henvic\/httpretty\/example\//d' profile.cov
- name: Code coverage
if: ${{ matrix.os == 'ubuntu-latest' && matrix.go == '1.23.x' }}
Expand Down

0 comments on commit 3a02507

Please sign in to comment.