Documentation ¶
Overview ¶
Package apptest allows testing of binded services within memory.
Index ¶
Constants ¶
const ServiceName = "test"
ServiceName is a constant used for all in memory tests.
Variables ¶
This section is empty.
Functions ¶
func GRPCClient ¶
GRPCClient creates a new client which connects to the specified service. It immediately fails the test if there is an error, and will also automatically close after the test completes.
func RunInCluster ¶
RunInCluster allows for running services during an in cluster e2e test. This is NOT for running the actual code under test, but instead allow running auxiliary services the code under test might call.
func TestApp ¶
TestApp starts an application for testing. It will automatically stop after the test completes, and immediately fail the test if there is an error starting. The caller must provide the listers to use for the app, this way the listeners can use a random port, and set the proper values on the config.
Types ¶
This section is empty.