Skip to content

Commit

Permalink
chore: set e2e tests to run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Jul 25, 2024
1 parent 679b49a commit 2898dd9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ endif
.PHONY: run-tests test test-all $(TEST_TARGETS)

test-e2e: build-docker
go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E) -count=1 --tags=e2e
go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E) -parallel -count=1 --tags=e2e

test-sim-nondeterminism:
@echo "Running non-determinism test..."
Expand Down
12 changes: 12 additions & 0 deletions test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,41 @@ import (
"github.com/stretchr/testify/suite"
)

// Each test suite can be run parallel, so it should not exist dependency
// between test different suite. However, inisde the suite itself, it can
// have dependency between Test1 and Test2, example:
// BTCStakingTestSuite has Test2SubmitCovenantSignature which
// depends on Test1CreateFinalityProviderAndDelegation for creating the
// finality provider used to query fp delegations and do its check.

// IBCTransferTestSuite tests IBC transfer end-to-end
func TestIBCTranferTestSuite(t *testing.T) {
t.Parallel()
suite.Run(t, new(IBCTransferTestSuite))
}

// TestBTCTimestampingTestSuite tests BTC timestamping protocol end-to-end
func TestBTCTimestampingTestSuite(t *testing.T) {
t.Parallel()
suite.Run(t, new(BTCTimestampingTestSuite))
}

// TestBTCTimestampingPhase2HermesTestSuite tests BTC timestamping phase 2 protocol end-to-end,
// with the Hermes relayer
func TestBTCTimestampingPhase2HermesTestSuite(t *testing.T) {
t.Parallel()
suite.Run(t, new(BTCTimestampingPhase2HermesTestSuite))
}

// TestBTCTimestampingPhase2RlyTestSuite tests BTC timestamping phase 2 protocol end-to-end,
// with the Go relayer
func TestBTCTimestampingPhase2RlyTestSuite(t *testing.T) {
t.Parallel()
suite.Run(t, new(BTCTimestampingPhase2RlyTestSuite))
}

// TestBTCStakingTestSuite tests BTC staking protocol end-to-end
func TestBTCStakingTestSuite(t *testing.T) {
t.Parallel()
suite.Run(t, new(BTCStakingTestSuite))
}

0 comments on commit 2898dd9

Please sign in to comment.