Collection of JSON RPC black-box testing tools
Using rpc-tests requires installing:
Vegeta>= 12.8.4Python>= 3.10- [
python3-jsonpatch] >= 1.32 (see README on integration subfolder) - [
json-diff] using npm (see README on integration subfolder)
After installation, make sure vegeta, json-diff and json-patch-jsondiff commands are available at your shell prompt.
After installation, make sure python3 and pip3 commands are available at your shell prompt by running python3 --version and pip3 --version.
To obtain rpc-tests source code for the first time:
git clone https://github.com/erigontech/rpc-tests.git
cd rpc-tests
Create your local virtual environment:
python3 -m venv .venv
Activate it:
source .venv/bin/activate
.\.venv\Scripts\activate
rpc-tests uses a few Python third-party libraries, so after you've updated to the latest code with
git pull
update the dependencies
pip3 install -r requirements.txt
Check out the dedicated guide in Integration Tests.
Check out the dedicated guide in Performance Tests.
python3 -m rpctests.block_by_number
python3 -m rpctests.empty_blocks
python3 -m rpctests.filter_changes
python3 -m rpctests.latest_block_logs
python3 -m rpctests.graphql
python3 -m rpctests.replay_request
python3 -m rpctests.replay_tx
python3 -m rpctests.subscriptions
pytest