Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add e2e tags #3354

Merged
merged 1 commit into from Jun 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 5 additions & 16 deletions Makefile
Expand Up @@ -319,7 +319,7 @@ endif
.PHONY: test
test: server/static/files.go
@mkdir -p test-results
go test -v $(TEST_OPTS) `go list ./... | grep -v 'test/e2e'` 2>&1 | tee test-results/test.out
go test -v $(TEST_OPTS) ./... 2>&1 | tee test-results/test.out

test-results/test-report.json: test-results/test.out
cat test-results/test.out | go tool test2json > test-results/test-report.json
Expand Down Expand Up @@ -430,30 +430,19 @@ mysql-cli:
test-e2e: test-images cli
# Run E2E tests
@mkdir -p test-results
go test -timeout 15m -v -count 1 -p 1 --short ./test/e2e/... 2>&1 | tee test-results/test.out
go test -timeout 15m -v -count 1 --tags e2e -p 1 --short ./test/e2e 2>&1 | tee test-results/test.out

.PHONY: test-e2e-cron
test-e2e-cron: test-images cli
# Run E2E tests
@mkdir -p test-results
go test -timeout 5m -v -count 1 -parallel 10 -run CronSuite ./test/e2e 2>&1 | tee test-results/test.out
go test -timeout 5m -v -count 1 --tags e2e -parallel 10 -run CronSuite ./test/e2e 2>&1 | tee test-results/test.out

.PHONY: smoke
smoke: test-images
# Run smoke tests
@mkdir -p test-results
go test -timeout 1m -v -count 1 -p 1 -run SmokeSuite ./test/e2e 2>&1 | tee test-results/test.out

.PHONY: test-api
test-api:
# Run API tests
go test -timeout 1m -v -count 1 -p 1 -run ArgoServerSuite ./test/e2e

.PHONY: test-cli
test-cli: cli
# Run CLI tests
go test -timeout 2m -v -count 1 -p 1 -run CLISuite ./test/e2e
go test -timeout 2m -v -count 1 -p 1 -run CLIWithServerSuite ./test/e2e
go test -timeout 1m -v -count 1 --tags e2e -p 1 -run SmokeSuite ./test/e2e 2>&1 | tee test-results/test.out

# clean

Expand Down Expand Up @@ -523,7 +512,7 @@ docs: swagger
# pre-push

.PHONY: pre-commit
pre-commit: test lint codegen manifests start smoke test-api test-cli
pre-commit: test lint codegen start

# release - targets only available on release branch
ifneq ($(findstring release,$(GIT_BRANCH)),)
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/argo_server_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/cli_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/cli_with_server_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/cluster_workflow_template_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/cron_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/functional_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/metrics_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/smoke_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/workflow_template_test.go
@@ -1,3 +1,5 @@
// +build e2e

package e2e

import (
Expand Down