mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
feat: add tests tags
This commit is contained in:
committed by
Julien Neuhart
parent
d5a58cfcb5
commit
f4d3fba306
5
Makefile
5
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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user