forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 7
Testing
Taylor Gerring edited this page Apr 9, 2015
·
10 revisions
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 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/
[State Test wiki](https://github.com/ethereum/tests/wiki/State-tests
Transaction Test wiki
Run with go test ./tests/transaction_test.go
- Install geth
- Load test JSON with
geth blocktest <pathToTheTestRepo>/BlockTests/bcJS_API_Test.json JS_API_Tests rpc
- Run rpc-tests (https://github.com/ethereum/rpc-tests#usage)