Skip to content

Writing Tests

The easiest way to get started is to use the interactive CLI:

uv run eest make test

and modify the generated test module to suit your needs.

For help deciding which test format to select, see Types of Tests, in particular Deciding on a Test Type. Otherwise, some simple test case examples to get started with are:

Key Resources

Advanced Topics

  • Opcode Metadata and Gas Calculations - Calculate gas costs and refunds using opcode metadata (advanced feature for gas-focused tests)
  • Bytecode Placeholders - Embed a value that depends on the bytecode containing it, by reserving a fixed-width slot and substituting the measured value

Please check that your code adheres to the repo's coding standards and read the other pages in this section for more background and an explanation of how to implement state transition and blockchain tests.