cosmos-sdk/tests/systemtests
dependabot[bot] 9c528d5061
build(deps): Bump cosmossdk.io/x/tx from 1.0.0 to 1.0.1 (#23459)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aljo242 <alex@interchainlabs.io>
2025-01-22 09:19:05 +00:00
..
testdata test: migrate e2e/tx tests to systemtest (backport #22152) (#22354) 2024-10-27 23:59:09 +01:00
.gitignore refactor(systemtests): Extract system test framework (backport #22578) (#22655) 2024-11-26 18:01:24 +01:00
account_test.go refactor(systemtests): Extract system test framework (backport #22578) (#22655) 2024-11-26 18:01:24 +01:00
auth_test.go fix(x/auth): update proto address conversion query to prevent duplicate HTTP binding (backport #23357) (#23422) 2025-01-17 01:08:34 +01:00
authz_test.go test(systemtests): fix gRPC tests for v1 & v2 (backport #22774) (#22788) 2024-12-06 12:18:14 +01:00
bank_test.go test: backport tests changes from #23262 (partial backport #23262) (#23356) 2025-01-13 23:09:58 +01:00
circuit_test.go feat(client/v2): support definitions of inner messages (backport #22890) (#22980) 2024-12-18 12:09:10 +01:00
cometbft_client_test.go test(systemtest): fix cometbft client (backport #22835) (#22836) 2024-12-11 22:04:20 +01:00
distribution_test.go test: fix systemtests (partial backport #23361) (#23366) 2025-01-14 08:57:03 +01:00
export_test.go test: investigate test failure due to wal log (backport #22679) (#23011) 2024-12-19 18:52:43 +01:00
fraud_test.go feat(x/auth/ante): allow custom verifyIsOnCurve when validate tx for public key (backport: #23128) (#23285) 2025-01-10 09:33:47 +01:00
getting_started.md test: e2e/staking to system tests (backport #21882) (#21902) 2024-09-25 07:19:46 +00:00
go.mod build(deps): Bump cosmossdk.io/x/tx from 1.0.0 to 1.0.1 (#23459) 2025-01-22 09:19:05 +00:00
go.sum build(deps): Bump cosmossdk.io/x/tx from 1.0.0 to 1.0.1 (#23459) 2025-01-22 09:19:05 +00:00
gov_test.go refactor(systemtests): Extract system test framework (backport #22578) (#22655) 2024-11-26 18:01:24 +01:00
group_test.go refactor(systemtests): Extract system test framework (backport #22578) (#22655) 2024-11-26 18:01:24 +01:00
grpc_test.go fix(server/v2/grpc): fix reflection (backport #23333) (#23342) 2025-01-13 11:55:16 +01:00
main_test.go refactor(systemtests): Extract system test framework (backport #22578) (#22655) 2024-11-26 18:01:24 +01:00
Makefile ci: increase test-system timeout (backport #22386) (#22387) 2024-10-28 17:11:46 +04:00
mint_test.go test(systemtests): fix mint v2 tests (backport #22789) (#22792) 2024-12-06 15:13:01 +01:00
README.md refactor(systemtests): Extract system test framework (backport #22578) (#22655) 2024-11-26 18:01:24 +01:00
snapshots_test.go test: investigate test failure due to wal log (backport #22679) (#23011) 2024-12-19 18:52:43 +01:00
staking_test.go test(systemtests): fix query block-results in TestStakeUnstake for v2 (backport #22782) (#22784) 2024-12-06 07:39:56 +01:00
tx_test.go test(test/systemtests): Add GasImprovement test (backport #22927) (#23067) 2025-01-06 13:24:35 +01:00
unordered_tx_test.go refactor(systemtests): Extract system test framework (backport #22578) (#22655) 2024-11-26 18:01:24 +01:00
upgrade_test.go fix(systemtests): align halt-height with comet in upgrade (backport #23306) (#23317) 2025-01-10 11:56:14 +01:00

System tests

Go black box tests that setup and interact with a local blockchain. The system test framework works with the compiled binary of the chain artifact only. To get up to speed, checkout the getting started guide.

Beside the Go tests and testdata files, this directory can contain the following directories:

  • binaries - cache for binary
  • testnet - node files

Please make sure to not add or push them to git.

Execution

Build a new binary from current branch and copy it to the tests/systemtests/binaries folder by running system tests. In project root:

make test-system

Or via manual steps

make build
mkdir -p ./tests/systemtests/binaries
cp ./build/simd ./tests/systemtests/binaries/

Manual test run

go test -v -mod=readonly -failfast -tags='system_test' --run TestStakeUnstake    ./... --verbose

Working with macOS

Most tests should function seamlessly. However, the file upgrade_test.go includes a build annotation for Linux only.

For the system upgrade test, an older version of the binary is utilized to perform a chain upgrade. This artifact is retrieved from a Docker container built for Linux.

To circumvent this limitation locally:

  1. Checkout and build the older version of the artifact from a specific tag for your OS.
  2. Place the built artifact into the binaries folder.
  3. Ensure that the filename, including the version, is correct.

With the cached artifact in place, the test will use this file instead of attempting to pull it from Docker.