Files
nuchat/backend/Justfile

22 lines
503 B
Makefile

GO_TEST := "gotestsum --format=testname --"
dirs:
@mkdir -p .build/tests
build: dirs
go build -o .build/nuchat fergus.molloy.xyz/nuchat
run: build
./.build/nuchat
test: unit integration coverage
integration:
{{GO_TEST}} ./tests/... | tee .build/tests/integration.log
unit:
{{GO_TEST}} -race $(go list ./... | grep -v "/tests") | tee .build/tests/unit.log
coverage:
{{GO_TEST}} $(go list ./... | grep -v "/tests") -coverprofile .build/tests/coverprofile.txt | tee .build/tests/coverage.log