Skip to content

Commit 347d023

Browse files
committed
Use specific go build flag for acceptance tests
1 parent e149c49 commit 347d023

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ build:
44
go build -ldflags "-s -w -X 'github.com/friendsofgo/killgrave/internal/app/cmd._version=`git rev-parse --abbrev-ref HEAD`-`git rev-parse --short HEAD`'" -o bin/killgrave cmd/killgrave/main.go
55

66
acceptance: build
7-
@(cd acceptance && go test -count=1 -v ./...)
7+
@(cd acceptance && go test -count=1 -tags=acceptance -v ./...)

acceptance/acceptance_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build acceptance
2+
13
package acceptance
24

35
import (

0 commit comments

Comments
 (0)