From b8405e155bd118805ab24f50b0d5c9f22348372c Mon Sep 17 00:00:00 2001 From: Thomas Poignant Date: Thu, 10 Oct 2024 16:35:44 +0200 Subject: [PATCH] chore: scope test bench (#2495) --- Makefile | 2 +- feature_flag_bench_test.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b5d88d3de68..24bfd5e7182 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ coverage: ## Run the tests of the project and export the coverage && cat coverage.cov.tmp | grep -v "/examples/" > coverage.cov bench: ## Launch the benchmark test - $(GOTEST) -bench Benchmark -cpu 2 -run=^$$ + $(GOTEST) -tags=bench -bench Benchmark -cpu 2 -run=^$$ ## Lint: lint: ## Use golintci-lint on your project diff --git a/feature_flag_bench_test.go b/feature_flag_bench_test.go index e793105c47a..c95aadf029a 100644 --- a/feature_flag_bench_test.go +++ b/feature_flag_bench_test.go @@ -1,3 +1,6 @@ +//go:build bench +// +build bench + package ffclient_test import (