From b68925ba3fef69a08dd3792e3639bb004221a7d6 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 28 Jun 2023 17:14:41 +0300 Subject: [PATCH] [#2] Run integration test in separate makefile target Signed-off-by: Alex Vanin --- Makefile | 5 +++++ cmd/frostfs-rest-gw/integration_test.go | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 105af07..c21acc5 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/cmd/frostfs-rest-gw/integration_test.go b/cmd/frostfs-rest-gw/integration_test.go index 0fa56a1..789421d 100644 --- a/cmd/frostfs-rest-gw/integration_test.go +++ b/cmd/frostfs-rest-gw/integration_test.go @@ -1,3 +1,5 @@ +//go:build integration + package main import (