I'm looking to add a localhost server to my app to...
# squarelibraries
c
I'm looking to add a localhost server to my app to test certain results from backend (similar to u2020 from Jake). I've done this in the past and used okhttp mockwebserver but I'm curious if anyone has any strong feels about possibly just shipping a ktor server in my app for the same thing. Any big benefit to using one vs the other? The only thing I can think of is that I remember that wayyy back when, mockwebserver was really made to be used in test and so it brings in junit as a transitive depedency. Just looking to start a conversation to see if people have strong opinions for one vs the other.
y
Not sure mockwebserver is the best route. But at least with 5 alpha, you can use the core without junit deps
👀 1
K 2
u
wiremock
👀 1
a
I use ktor with netty for the integration tests, I only had to permit cleartext from the localhost subdomain. I imagine ktor would be heavier performance wise and overall size of the dependency?