Add info to test make targets

This commit is contained in:
Michael Mayer 2019-06-03 23:55:01 +02:00
parent a5888f9fe2
commit 2f5175c1f4

View file

@ -50,23 +50,32 @@ build-go:
watch-js: watch-js:
(cd frontend && env NODE_ENV=development npm run dev) (cd frontend && env NODE_ENV=development npm run dev)
test-js: test-js:
$(info Running JS unit tests...)
(cd frontend && env NODE_ENV=development npm run test) (cd frontend && env NODE_ENV=development npm run test)
test-chromium: test-chromium:
$(info Running JS acceptance tests in Chrome...)
(cd frontend && npm run test-chromium) (cd frontend && npm run test-chromium)
test-firefox: test-firefox:
$(info Running JS acceptance tests in Firefox...)
(cd frontend && npm run test-firefox) (cd frontend && npm run test-firefox)
test-go: test-go:
$(info Running all Go unit tests...)
$(GOTEST) -tags=slow -timeout 20m ./internal/... $(GOTEST) -tags=slow -timeout 20m ./internal/...
test-debug: test-debug:
$(info Running all Go unit tests in verbose mode...)
$(GOTEST) -tags=slow -timeout 20m -v ./internal/... $(GOTEST) -tags=slow -timeout 20m -v ./internal/...
test-short: test-short:
$(info Running short Go unit tests in verbose mode...)
$(GOTEST) -short -timeout 5m -v ./internal/... $(GOTEST) -short -timeout 5m -v ./internal/...
test-race: test-race:
$(info Running all Go unit tests with race detection in verbose mode...)
$(GOTEST) -tags=slow -race -timeout 60m -v ./internal/... $(GOTEST) -tags=slow -race -timeout 60m -v ./internal/...
test-codecov: test-codecov:
$(info Running all Go unit tests with code coverage report for codecov...)
go test -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... go test -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/...
scripts/codecov.sh scripts/codecov.sh
test-coverage: test-coverage:
$(info Running all Go unit tests with code coverage report...)
go test -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... go test -tags=slow -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/...
go tool cover -html=coverage.txt -o coverage.html go tool cover -html=coverage.txt -o coverage.html
clean: clean: