diff --git a/Makefile b/Makefile index 90c383fb..52aa35e3 100644 --- a/Makefile +++ b/Makefile @@ -160,12 +160,13 @@ PLATFORM= NO_CONCURRENCY=false .PHONY: test-integration -test-integration: ## Run integration tests +test-integration: ## Run integration tests, use TAGS environment variable to filter tests by tags go test -timeout 40m -tags=integration -v github.com/gotenberg/gotenberg/v8/test/integration -args \ --gotenberg-docker-repository=$(DOCKER_REPOSITORY) \ --gotenberg-version=$(GOTENBERG_VERSION) \ --gotenberg-container-platform=$(PLATFORM) \ - --no-concurrency=$(NO_CONCURRENCY) + --no-concurrency=$(NO_CONCURRENCY) \ + --tags="$(TAGS)" .PHONY: lint lint: ## Lint Golang codebase diff --git a/test/integration/main_test.go b/test/integration/main_test.go index 6e4036c0..67144b22 100644 --- a/test/integration/main_test.go +++ b/test/integration/main_test.go @@ -19,6 +19,7 @@ func TestMain(m *testing.M) { version := flag.String("gotenberg-version", "", "") platform := flag.String("gotenberg-container-platform", "", "") noConcurrency := flag.Bool("no-concurrency", false, "") + tags := flag.String("tags", "", "") flag.Parse() if *platform == "" { @@ -47,6 +48,7 @@ func TestMain(m *testing.M) { Paths: []string{"features"}, Output: colors.Colored(os.Stdout), Concurrency: concurrency, + Tags: *tags, }, }.Run()