Skip to content

Commit e37d71a

Browse files
akhilkumarpillijulienrbrttac0turtle
authored
test: migrate remaining e2e tests to integration tests (#22364)
Co-authored-by: Julien Robert <julien@rbrt.fr> Co-authored-by: Marko <marko@baricevic.me>
1 parent fc5536a commit e37d71a

19 files changed

+61
-101
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -113,37 +113,6 @@ jobs:
113113
name: "${{ github.sha }}-integration-coverage"
114114
path: ./tests/integration-profile.out
115115

116-
test-e2e:
117-
runs-on: ubuntu-latest
118-
steps:
119-
- uses: actions/checkout@v4
120-
- uses: actions/setup-go@v5
121-
with:
122-
go-version: "1.23"
123-
check-latest: true
124-
cache: true
125-
cache-dependency-path: go.sum
126-
- uses: technote-space/get-diff-action@v6.1.2
127-
id: git_diff
128-
with:
129-
PATTERNS: |
130-
**/*.go
131-
go.mod
132-
go.sum
133-
**/go.mod
134-
**/go.sum
135-
**/Makefile
136-
Makefile
137-
- name: e2e tests
138-
if: env.GIT_DIFF
139-
run: |
140-
make test-e2e-cov
141-
- uses: actions/upload-artifact@v3
142-
if: env.GIT_DIFF
143-
with:
144-
name: "${{ github.sha }}-e2e-coverage"
145-
path: ./tests/e2e-profile.out
146-
147116
test-system: # v2 system tests are in v2-test.yml
148117
runs-on: ubuntu-latest
149118
steps:
@@ -186,7 +155,7 @@ jobs:
186155

187156
repo-analysis:
188157
runs-on: ubuntu-latest
189-
needs: [tests, test-integration, test-e2e]
158+
needs: [tests, test-integration]
190159
steps:
191160
- uses: actions/checkout@v4
192161
- uses: technote-space/get-diff-action@v6.1.2

scripts/build/testing.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,14 @@ init-simapp-v2:
1111

1212
#? test: Run `make test-unit`
1313
test: test-unit
14-
#? test-e2e: Run `make -C tests test-e2e`
15-
test-e2e:
16-
$(MAKE) -C tests test-e2e
17-
#? test-e2e-cov: Run `make -C tests test-e2e-cov`
18-
test-e2e-cov:
19-
$(MAKE) -C tests test-e2e-cov
2014
#? test-integration: Run `make -C tests test-integration`
2115
test-integration:
2216
$(MAKE) -C tests test-integration
2317
#? test-integration-cov: Run `make -C tests test-integration-cov`
2418
test-integration-cov:
2519
$(MAKE) -C tests test-integration-cov
2620
#? test-all: Run all test
27-
test-all: test-unit test-e2e test-integration test-ledger-mock test-race
21+
test-all: test-unit test-integration test-ledger-mock test-race
2822

2923
.PHONY: test-system
3024
test-system: build

tests/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,3 @@ test-integration:
33

44
test-integration-cov:
55
go test ./integration/... -timeout 30m -coverpkg=../... -coverprofile=integration-profile.out -covermode=atomic
6-
7-
test-e2e:
8-
go test ./e2e/... -mod=readonly -timeout 30m -race -tags='e2e'
9-
10-
test-e2e-cov:
11-
go test ./e2e/... -mod=readonly -timeout 30m -race -tags='e2e' -coverpkg=../... -coverprofile=e2e-profile.out -covermode=atomic

tests/e2e/accounts/lockup/lockup_account_test.go

Lines changed: 0 additions & 11 deletions
This file was deleted.
File renamed without changes.

tests/e2e/accounts/lockup/continous_lockup_test_suite.go renamed to tests/integration/accounts/lockup/continous_lockup_test_suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
sdk "github.com/cosmos/cosmos-sdk/types"
1717
)
1818

19-
func (s *E2ETestSuite) TestContinuousLockingAccount() {
19+
func (s *IntegrationTestSuite) TestContinuousLockingAccount() {
2020
t := s.T()
2121
app := setupApp(t)
2222
currentTime := time.Now()

tests/e2e/accounts/lockup/delayed_lockup_test_suite.go renamed to tests/integration/accounts/lockup/delayed_lockup_test_suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
sdk "github.com/cosmos/cosmos-sdk/types"
1717
)
1818

19-
func (s *E2ETestSuite) TestDelayedLockingAccount() {
19+
func (s *IntegrationTestSuite) TestDelayedLockingAccount() {
2020
t := s.T()
2121
app := setupApp(t)
2222
currentTime := time.Now()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package lockup
2+
3+
import (
4+
"testing"
5+
6+
"github.com/stretchr/testify/suite"
7+
)
8+
9+
func TestIntegrationTestSuite(t *testing.T) {
10+
suite.Run(t, NewIntegrationTestSuite())
11+
}

tests/e2e/accounts/lockup/periodic_lockup_test_suite.go renamed to tests/integration/accounts/lockup/periodic_lockup_test_suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
sdk "github.com/cosmos/cosmos-sdk/types"
1717
)
1818

19-
func (s *E2ETestSuite) TestPeriodicLockingAccount() {
19+
func (s *IntegrationTestSuite) TestPeriodicLockingAccount() {
2020
t := s.T()
2121
app := setupApp(t)
2222
currentTime := time.Now()

tests/e2e/accounts/lockup/permanent_lockup_test_suite.go renamed to tests/integration/accounts/lockup/permanent_lockup_test_suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
sdk "github.com/cosmos/cosmos-sdk/types"
1717
)
1818

19-
func (s *E2ETestSuite) TestPermanentLockingAccount() {
19+
func (s *IntegrationTestSuite) TestPermanentLockingAccount() {
2020
t := s.T()
2121
app := setupApp(t)
2222
currentTime := time.Now()

0 commit comments

Comments
 (0)