Package-level declarations
Types
A builder for a test that uses TestApplication.
A client attached to TestApplication.
Exception that is expected to be thrown during test execution. It will not be logged and will not fail the test.
Registers mocks for external services.
A configured instance of a test application running locally.
A builder for TestApplication.
A test application call that is used in TestApplicationEngine.
A test engine that provides a way to simulate application calls to the existing application module(s) without actual HTTP connection.
A test application request
A test call response received from a server.
An ApplicationEngineFactory providing a CIO-based ApplicationEngine.
Functions
Creates an engine environment for a test application.
Creates an instance of TestApplication configured with the builder block. Make sure to call TestApplication.stop after your tests.
Creates a test using TestApplication. To test a server Ktor application, do the following:
Starts a test application engine, passes it to the test function, and stops it.
Starts a test application engine, passes it to the test function, and stops it.