For Ktor test framework, when we using testApplication to start up the Ktor application, it is not possible to combine with io.restassured.RestAssured ( We want to to use RestAssured to verify the swagger.yaml ). Is it some other way we can test it without using E2E solution?
a
Aleksei Tirman [JB]
11/20/2025, 12:12 PM
As far as I understand, RestAssured makes HTTP requests to validate the responses, meaning that testApplication, which doesn't listen for and establish TCP/IP connections, cannot be used with it.
t
Tak Wai Wang
11/20/2025, 1:09 PM
We found out that we should use OpenApiInteractionValidator instead of RestAssured to validate the Swagger configuration