2016-08-06 23:31:06 -04:00
|
|
|
# Tendermint Tests
|
|
|
|
|
|
|
|
The unit tests (ie. the `go test` s) can be run with `make test`.
|
2018-04-23 17:39:01 +09:00
|
|
|
The integration tests can be run with `make test_integrations`.
|
2016-08-06 23:31:06 -04:00
|
|
|
|
2017-01-28 19:24:46 -05:00
|
|
|
Running the integrations test will build a docker container with local version of tendermint
|
2016-08-06 23:31:06 -04:00
|
|
|
and run the following tests in docker containers:
|
|
|
|
|
|
|
|
- go tests, with --race
|
2017-01-28 19:24:46 -05:00
|
|
|
- includes test coverage
|
2016-08-06 23:31:06 -04:00
|
|
|
- app tests
|
2018-02-27 14:01:10 +00:00
|
|
|
- kvstore app over socket
|
2016-08-06 23:31:06 -04:00
|
|
|
- counter app over socket
|
|
|
|
- counter app over grpc
|
2017-01-28 19:24:46 -05:00
|
|
|
- persistence tests
|
|
|
|
- crash tendermint at each of many predefined points, restart, and ensure it syncs properly with the app
|
2016-08-06 23:31:06 -04:00
|
|
|
- p2p tests
|
2018-02-27 14:01:10 +00:00
|
|
|
- start a local kvstore app testnet on a docker network (requires docker version 1.10+)
|
2016-08-06 23:31:06 -04:00
|
|
|
- send a tx on each node and ensure the state root is updated on all of them
|
2017-01-28 19:24:46 -05:00
|
|
|
- crash and restart nodes one at a time and ensure they can sync back up (via fastsync)
|
|
|
|
- crash and restart all nodes at once and ensure they can sync back up
|