https://kotlinlang.org logo
#ktor
Title
o

orangy

09/08/2017, 3:48 PM
Create new test class
CallLoggingTest
, create a test application using something like
withTestApplication
but with custom logger, see
createTestEnvironment
for how to configure logger. Create a custom Logger implementation that would track logged events, like in
testLoggerOnError
. Each test would issue calls into an application and check the resulting log records. Tests should include unhandled calls, failed calls, success calls, etc.