Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test coverage in PRs #193

Merged
merged 4 commits into from
May 13, 2024
Merged

Test coverage in PRs #193

merged 4 commits into from
May 13, 2024

Conversation

muddyfish
Copy link
Contributor

Issue #, if available: N/A

Description of changes: Introduce coverage tests that are ran during PRs and pushes to main.
No coverage requirements as of yet.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

github-actions bot commented May 2, 2024

Total test coverage: $TOTAL_COVERAGE%

@muddyfish muddyfish force-pushed the simobeal-add-test-coverage branch from 503ef16 to 6656c14 Compare May 2, 2024 10:10
Copy link

github-actions bot commented May 2, 2024

Total test coverage: 46%

@muddyfish muddyfish force-pushed the simobeal-add-test-coverage branch from 6656c14 to 0485d55 Compare May 2, 2024 10:14
Copy link

github-actions bot commented May 2, 2024

Total test coverage: 46%

go test -v -race ./pkg/...
go test -v -race ./pkg/... -coverprofile=./cover.out -covermode=atomic -coverpkg=./pkg/...
${GOBIN}/go-test-coverage --config=./.testcoverage.yml
go tool cover -html=cover.out -o=cover.html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we able to see this html output somewhere?

Copy link

github-actions bot commented May 3, 2024

Copy link

@muddyfish muddyfish merged commit 8a6de5a into main May 13, 2024
8 checks passed
@muddyfish muddyfish deleted the simobeal-add-test-coverage branch May 13, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants