175721e368
* build(deps): bump protobuf in /tests/integration_tests Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 3.20.0 to 3.20.2. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py) - [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.20.0...v3.20.2) --- updated-dependencies: - dependency-name: protobuf dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * change lock file to remove infinite recursion Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: adisaran64 <adisaran64@berkeley.edu> |
||
---|---|---|
.. | ||
configs | ||
contracts | ||
__init__.py | ||
.isort.cfg | ||
conftest.py | ||
cosmoscli.py | ||
expected_constants.py | ||
network.py | ||
poetry.lock | ||
pyproject.toml | ||
README.md | ||
shell.nix | ||
test_basic.py | ||
test_filters.py | ||
test_priority.py | ||
test_pruned_node.py | ||
test_rollback.py | ||
test_types.py | ||
test_upgrade.py | ||
utils.py |
RPC Integration tests
The RPC integration test suite uses nix for reproducible and configurable builds allowing to run integration tests using python web3 library against different Ethermint and Geth clients with multiple configurations.
Installation
Nix Multi-user installation:
sh <(curl -L https://nixos.org/nix/install) --daemon
Make sure the following line has been added to your shell profile (e.g. ~/.profile):
source ~/.nix-profile/etc/profile.d/nix.sh
Then re-login shell, the nix installation is completed.
For linux:
sh <(curl -L https://nixos.org/nix/install) --no-daemon
Run Local
First time run (can take a while):
make run-integration-tests
Once you've run them once and, you can run:
nix-shell tests/integration_tests/shell.nix
cd tests/integration_tests
pytest -s -vv
If you're changing anything on the ethermint rpc, rerun the first command.
Caching
You can enable Binary Cache to speed up the tests:
$ nix-env -iA cachix -f https://cachix.org/api/v1/install
$ cachix use ethermint