Skip to content

Commit

Permalink
tests: add coverage and a dummy test file
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocbsr committed Feb 7, 2024
1 parent 1d1ad41 commit c2aeaf4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test -race -coverprofile=coverage.txt -covermode=atomic

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ go-template
config.yaml

vendor
docker
docker
coverage.txt
7 changes: 7 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main_test

import "testing"

func TestMain(t *testing.T) {
t.Log("TODO: Write tests for main.go")
}

0 comments on commit c2aeaf4

Please sign in to comment.