More test coverage #13
Labels
No labels
Priority: High
Priority: Low
Priority: Medium
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: sam/awl#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So running the following commands
go test -v -coverpkg=./... -coverprofile=profile.cov ./...
provide us with only 6.1% test coverage for all of awl currently.Obviously this is very low so more tests will need to be written which fortunatly we can see better coverage of where we are missing things, check this page that Go generated for a more verbose explaination of where our tests are and are not.
So the tl;dr of the file is logawl and query has 0% coverage and the root directory has a whopping 9% coverage and util has ~6%. Full output
As a future proposal we may want to add a pipeline step to update that page with the test coverage and include a link in the repo, maybe.
Adding on to this to quantify test coverage percentages: if a given file has test coverage of at least 85% it's fine.