From 03ce1ffdd7f778e58d675fd5bc89f0960e733886 Mon Sep 17 00:00:00 2001 From: aljo242 Date: Fri, 1 Dec 2023 16:55:43 -0500 Subject: [PATCH] rename --- .github/workflows/ictest.yml | 2 +- Makefile | 26 +++++++++---------- ...on.Dockerfile => feemarket.e2e.Dockerfile} | 0 tests/e2e/e2e_test.go | 6 ++--- tests/e2e/suite.go | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) rename contrib/images/{feemarket.integration.Dockerfile => feemarket.e2e.Dockerfile} (100%) diff --git a/.github/workflows/ictest.yml b/.github/workflows/ictest.yml index 8bfdd6d..5545cc8 100644 --- a/.github/workflows/ictest.yml +++ b/.github/workflows/ictest.yml @@ -25,4 +25,4 @@ jobs: - name: tests if: env.GIT_DIFF run: | - go work init && make test-integration \ No newline at end of file + go work init && make test-e2e \ No newline at end of file diff --git a/Makefile b/Makefile index e21f5ba..4186520 100644 --- a/Makefile +++ b/Makefile @@ -18,11 +18,11 @@ COVER_HTML_FILE := cover.html use-main: @go work edit -use . - @go work edit -dropuse ./tests/integration + @go work edit -dropuse ./tests/e2e -use-integration: +use-e2e: @go work edit -dropuse . - @go work edit -use ./tests/integration + @go work edit -use ./tests/e2e tidy: @go mod tidy @@ -102,7 +102,7 @@ build-and-start-app: build-test-app .PHONY: build-test-app build-and-start-app -.PHONY: docker-build docker-build-integration +.PHONY: docker-build docker-build-e2e ############################################################################### ## Docker ## ############################################################################### @@ -111,20 +111,20 @@ docker-build: use-main @echo "Building E2E Docker image..." @DOCKER_BUILDKIT=1 docker build -t skip-mev/feemarket-e2e -f contrib/images/feemarket.e2e.Dockerfile . -docker-build-integration: use-main - @echo "Building integration-test Docker image..." - @DOCKER_BUILDKIT=1 docker build -t feemarket-integration -f contrib/images/feemarket.integration.Dockerfile . +docker-build-e2e: use-main + @echo "Building e2e-test Docker image..." + @DOCKER_BUILDKIT=1 docker build -t feemarket-e2e -f contrib/images/feemarket.e2e.Dockerfile . ############################################################################### ### Tests ### ############################################################################### -TEST_INTEGRATION_DEPS = docker-build-integration use-integration -TEST_INTEGRATION_TAGS = integration +TEST_E2E_DEPS = docker-build-e2e use-e2e +TEST_E2E_TAGS = e2e -test-integration: $(TEST_INTEGRATION_DEPS) - @echo "Running integration tests..." - @go test ./tests/integration/integration_test.go -timeout 30m -p 1 -race -v -tags='$(TEST_INTEGRATION_TAGS)' +test-e2e: $(TEST_E2E_DEPS) + @echo "Running e2e tests..." + @go test ./tests/e2e/e2e_test.go -timeout 30m -p 1 -race -v -tags='$(TEST_E2E_TAGS)' test: @go test -v -race $(shell go list ./... | grep -v tests/) @@ -139,7 +139,7 @@ test-cover: @rm $(COVER_FILE) -.PHONY: test test-integration +.PHONY: test test-e2e ############################################################################### ### Protobuf ### diff --git a/contrib/images/feemarket.integration.Dockerfile b/contrib/images/feemarket.e2e.Dockerfile similarity index 100% rename from contrib/images/feemarket.integration.Dockerfile rename to contrib/images/feemarket.e2e.Dockerfile diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 3e04fe1..fd3216a 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -5,7 +5,6 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module/testutil" interchaintest "github.com/strangelove-ventures/interchaintest/v7" "github.com/strangelove-ventures/interchaintest/v7/chain/cosmos" @@ -13,6 +12,7 @@ import ( ictestutil "github.com/strangelove-ventures/interchaintest/v7/testutil" "github.com/stretchr/testify/suite" + "github.com/skip-mev/feemarket/tests/e2e" feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types" ) @@ -99,7 +99,7 @@ func MakeEncodingConfig() *testutil.TestEncodingConfig { return &cfg } -func TestIntegrationTestSuite(t *testing.T) { - s := integration.NewIntegrationTestSuiteFromSpec(spec) +func TestE2ETestSuite(t *testing.T) { + s := e2e.NewE2ETestSuiteFromSpec(spec) suite.Run(t, s) } diff --git a/tests/e2e/suite.go b/tests/e2e/suite.go index b6115c5..586fa60 100644 --- a/tests/e2e/suite.go +++ b/tests/e2e/suite.go @@ -40,7 +40,7 @@ type TestSuite struct { cdc codec.Codec } -func NewIntegrationTestSuiteFromSpec(spec *interchaintest.ChainSpec) *TestSuite { +func NewE2ETestSuiteFromSpec(spec *interchaintest.ChainSpec) *TestSuite { return &TestSuite{ spec: spec, denom: "stake",