Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Dec 1, 2023
1 parent d426f2c commit 03ce1ff
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- name: tests
if: env.GIT_DIFF
run: |
go work init && make test-integration
go work init && make test-e2e
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ##
###############################################################################
Expand All @@ -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/)
Expand All @@ -139,7 +139,7 @@ test-cover:
@rm $(COVER_FILE)


.PHONY: test test-integration
.PHONY: test test-e2e

###############################################################################
### Protobuf ###
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ 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"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
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"
)

Expand Down Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion tests/e2e/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 03ce1ff

Please sign in to comment.