[#2] Run integration test in separate makefile target

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2023-06-28 17:14:41 +03:00
parent 7b05338492
commit b68925ba3f
2 changed files with 7 additions and 0 deletions

View file

@ -77,6 +77,11 @@ generate-server: swagger
test:
@go test ./... -cover
# Run integration tests
.PHONY: integration-test
integration-test:
@go test ./... -cover --tags=integration
# Run tests with race detection and produce coverage output
cover:
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic

View file

@ -1,3 +1,5 @@
//go:build integration
package main
import (