You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
428 B
Makefile

SHELL := /bin/bash
.PHONY: coverage
test:
go test ./...
ci-coverage:
[[ -d coverage ]] || mkdir coverage
podman build --tag tmpl-coverage .
podman run --interactive --tty --rm --volume $$(pwd)/coverage:/app/coverage tmpl-coverage make coverage
coverage:
[[ -d coverage ]] || mkdir coverage
go test -coverpkg=./... -coverprofile=coverage/index.out ./...
go tool cover -html=coverage/index.out -o coverage/index.html