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

Generate coverage with sqlite #18813

Merged
merged 1 commit into from Feb 19, 2022
Merged

Generate coverage with sqlite #18813

merged 1 commit into from Feb 19, 2022

Conversation

KN4CK3R
Copy link
Member

@KN4CK3R KN4CK3R commented Feb 18, 2022

Added a new make switch to generate coverage with sqlite. The usual integration test command (test-sqlite) uses sqlite, so there should be a corresponding coverage command.

This will generate a simple HTML coverage report:

make unit-test-coverage integration-test-coverage-sqlite coverage
go tool cover -html=coverage-bodged.out -o=coverage.html

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Feb 18, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 19, 2022
@lunny lunny merged commit 159c3f4 into go-gitea:main Feb 19, 2022
@KN4CK3R KN4CK3R deleted the coverage-sqlite branch February 19, 2022 15:39
zjjhot added a commit to zjjhot/gitea that referenced this pull request Feb 19, 2022
* giteaofficial/main:
  Fix panic in EscapeReader (go-gitea#18820)
  Put buttons back in org dashboard (go-gitea#18817)
  Generate coverage with sqlite. (go-gitea#18813)
  Update on-cloud-provider.md (go-gitea#18807)
Chianina pushed a commit to Chianina/gitea that referenced this pull request Mar 28, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants