Documentation ¶
Overview ¶
Package tmtest provides helpers for testing using tendermint server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunApp ¶ added in v0.21.3
func RunApp(ctx context.Context, t TestReporter, appName, home string) (cleanup func())
RunApp is like RunTendermint, just executes the application executable, assuming a prepared home directory
func RunTendermint ¶
func RunTendermint(ctx context.Context, t TestReporter, home string) (cleanup func())
RunTendermint starts a tendermit process. Returned cleanup function will ensure the process has stopped and will block until.
Set FORCE_TM_TEST=1 environment variable to fail the test if the binary is not available. This might be desired when running tests by CI.
Set TM_DEBUG=1 environmental variable to output all tm logs
func SetupConfig ¶ added in v0.19.0
SetupConfig creates a homedir to run inside, and copies demo tendermint files there.
these files reside in sourceDir and can be created via `tendermint init` (sourceDir can usually be "testdata")
second argument is cleanup call