Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
John Coleman committed May 23, 2024
1 parent 17fd5c1 commit c292b0a
Show file tree
Hide file tree
Showing 19 changed files with 866 additions and 61 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ jobs:
- name: Test
env:
GOPROXY: "https://proxy.golang.org"
run: go test -v .
run: |
go test -v ./ ./internal/cache -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out -o=coverage.out
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ build:
fmt:
go fmt ./...

test: test-mariadb test-postgres test-mssql
test: test-go test-mariadb test-postgres test-mssql

test-go:
go test ./ ./internal/cache -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out -o=coverage.out


test-mariadb:
docker compose run --rm mariadb_test
go tool cover -html test/acceptance/mariadb/coverage.out -o test/acceptance/mariadb/coverage.html

test-postgres:
docker compose run --rm postgres_test
Expand Down
Loading

0 comments on commit c292b0a

Please sign in to comment.