Hey everyone, does anyone know how to unit test SS...
# ktor
h
Hey everyone, does anyone know how to unit test SSE on the client side (Android, iOS), I couldn't find any examples
a
Do you mean with
testApplication
or end-to-end?
h
Test application sry
or maybe even with
Copy code
class HttpEngineFactoryMock : HttpEngineFactory()
but i’m not sure if it has SSE capabilities?
a
The MockEngine doesn't support SSE. The
testApplication
has a limited capability to test asynchronous events. You don't need anything special to set up, so the code will be similar to one where regular HTTP calls are tested.
thank you color 1