MCPcopy Index your code
hub / github.com/ethereum/tests

github.com/ethereum/tests @v17.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v17.2 ↗ · + Follow
59 symbols 172 edges 6 files 20 documented · 34%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Ethereum Execution Tests (EVM) Build Status

Common tests for all clients to test against. Test execution tool: https://github.com/ethereum/retesteth

Test Formats

Maintained tests:

/BasicTests
/BlockchainTests
/GeneralStateTests
/TransactionTests
/EIPTests
/EOFTests
/RLPTest
/src

See descriptions of the different test formats in the official documentation at http://ethereum-tests.readthedocs.io/.

Note:
The format of BlockchainTests recently changed with the introduction of a new field sealEngine (values: NoProof | Ethash), see related JSON Schema change or BlockchainTest format docs for reference.

This means that you can skip PoW validation for NoProof tests but also has the consequence that it is not possible to rely on/check PoW related block parameters for these tests any more.

Clients using the library

The following clients make use of the tests from this library. You can use these implementations for inspiration on how to integrate. If your client is missing, please submit a PR (requirement: at least some minimal test documentation)!

Using the Tests

We do versioned tag releases for tests and you should aim to run your client libraries against the latest repository snapshot tagged.

Generally the develop branch in ethereum/tests is always meant to be stable and you should be able to run your test against.

Contribute to the Test Suite

See the dedicated section in the docs on how to write new tests. Or read a shorter description here.

If you want to follow up with current tasks and what is currently in the works, have a look at the issues

Currently the geth evm t8ntool client is the reference client for generating tests. Besu client also has support for generating the tests using rpc test protocol. See at https://github.com/ethereum/retesteth/wiki

Testing stats

Testing results are available at http://retesteth.ethdevops.io/
There is a web tool for vmtracing the tests using supported clients and retesteth: http://retesteth.ethdevops.io/web/
All blockchain tests are being run by hive tool: https://hivetests.ethdevops.io/

Contents of this repository

Do not change test files in folders: * StateTests * BlockchainTests * TransactionTests * VMTests

It is being created by the testFillers which could be found at src folder. The filler specification and wiki are in development so please ask on gitter channel for more details.

If you want to modify a test filler or add a new test please contact @wdimitry at telegram Use the following guide: https://github.com/ethereum/retesteth/wiki/Creating-a-State-Test-with-retesteth

Core symbols most depended-on inside this repo

push
called by 91
ansible/ec2.py
createEOF1Code
called by 65
src/Templates/EOF1/EOF1-generator.js
byte2Hex
called by 32
src/Templates/TestEachOpcode/testOpcodesGen.js
aOPb_to_ml
called by 32
src/Templates/TestEachOpcode/testOpcodesGen.js
push_group
called by 16
ansible/ec2.py
to_safe
called by 15
ansible/ec2.py
int2str
called by 13
src/Templates/RandomTests/randomTest.js
cloneEof1Good
called by 12
src/Templates/EOF1/EOF1-generator.js

Shape

Function 36
Method 22
Class 1

Languages

TypeScript61%
Python39%

Modules by API surface

ansible/ec2.py23 symbols
src/Templates/TestEachOpcode/testOpcodesGen.js21 symbols
src/Templates/RandomTests/randomTest.js8 symbols
src/Templates/EOF1/EOF1-generator.js7 symbols

For agents

$ claude mcp add tests \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact