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 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
Sets an HTTP request body bytes.
Sets an HTTP request body text content.
Set HTTP request body from ByteReadPacket
Sets a multipart HTTP request body.
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.