https://kotlinlang.org logo
l

LeoColman

10/08/2020, 1:02 AM
Hey guys! How are you testing the Kotless endpoints? How do I start the local server in an unit test (is that even possible?)
t

TanVD

10/09/2020, 11:38 AM
You can use
LambdaHandler
that is located at
io.kotless.dsl.LambdaHandler
and pass there JSONs with requests.
There is also
kotless-lang-local
library (that is used to locally start server) that wraps Kotless DSL with jetty. You may also use it 🙂