Package io.ktor.server.testing
Types
A builder for a test that uses TestApplication.
A client attached to TestApplication.
Registers mocks for external services.
This HTTP generator produces huge amount of requests however it doesn't validate responses and doesn't measure any time characteristics.
A configured instance of a test application running locally.
A builder for TestApplication.
A test application call that is used in withTestApplication and handleRequest.
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
Wait for websocket session completion
Returns a parsed content type from a test response.
Keeps cookies between requests inside the callback.
Creates an engine environment for a test application.
Makes a test request.
Makes a test request that sets up a WebSocket session and invokes the callback function that handles conversation with the server
Set HTTP request body from ByteReadPacket
Sets an HTTP request body bytes.
Sets an HTTP request body text content.
Sets a multipart HTTP request body.
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.