Skip to content
Fabian Vogelsteller edited this page Apr 23, 2015 · 10 revisions

Running tests on go-ethereum

This page assumes go-ethereum has been configured according to the Developers Guide. All commands (unless stated otherwise) are assumed to be run from $GOPATH/src/github.com/ethereum/go-ethereum

Unit tests

See Travis or Coveralls for status.

Test the full codebase locally by changing to the repository directory and running

test ./...

Integration tests

Integration tests for Go are included in the tests directory and can be run with standard go testing (i.e. go test). To run all the integration tests simply run:

go test ./tests/

VM

VM Test wiki

State

State Test wiki

Transaction

Transaction Test wiki

go test ./tests/transaction_test.go

Blockchain

Blockchain Test wiki

go test ./tests/block_test.go

RPC

RPC Tests repo

  1. Load test JSON with
    geth blocktest <pathToTheTestRepo>/BlockTests/bcRPC_API_Test.json RPC_API_Test rpc
    
  2. Run rpc-tests (https://github.com/ethereum/rpc-tests#usage)
Clone this wiki locally