forked from TrueCloudLab/frostfs-rest-gw
[#2] Run integration test in separate makefile target
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
7b05338492
commit
b68925ba3f
2 changed files with 7 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -77,6 +77,11 @@ generate-server: swagger
|
||||||
test:
|
test:
|
||||||
@go test ./... -cover
|
@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
|
# Run tests with race detection and produce coverage output
|
||||||
cover:
|
cover:
|
||||||
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
|
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build integration
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in a new issue