Skip to content
Taylor Gerring edited this page Apr 9, 2015 · 10 revisions

Testing

Unit tests

See Travis or Coveralls for status.

Test the full codebase locally by changing to the repository directory (cd $GOPATH/src/github.com/ethereum/go-ethereum) 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:

cd $GOPATH/src/github.com/ethereum/go-ethereum && go test ./tests/

VM

VM Test wiki

State

[State Test wiki](https://github.com/ethereum/tests/wiki/State-tests

Transaction

Transaction Test wiki Run with go test ./tests/transaction_test.go

Blockchain

Blockchain Test wiki

RPC

RPC Tests repo

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