Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Testing

Taylor Gerring edited this page Apr 9, 2015 · 17 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

VM

https://github.com/ethereum/tests/wiki/VM-Tests

State

https://github.com/ethereum/tests/wiki/State-tests

Transaction

See https://github.com/ethereum/tests/wiki/Transaction-Tests

Blockchain

See https://github.com/ethereum/tests/wiki/Blockchain-Tests and https://github.com/ethereum/tests/wiki/Blockchain-Tests-II

RPC

  1. Install geth
  2. Load test JSON 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