If I’d write a custom `HttpClientEngine` , is ther...
# ktor
s
If I’d write a custom
HttpClientEngine
, is there any way I can run the ktor test suite on them? Those tests do not happen to get published to maven, or? There’s
ktor-client-tests*
but it doesn’t contain the actual test cases, right?
c
Actually it does. Test suites discover engines via client loader (spi on jvm) and run tests with each found engine.
s
Oh, that sound great. Do you know which package exactly and what kind of initialization I’d have to do from my test source set? Is there an out-of-the-ktor-repository example somewhere? :)
c
We had never a good reason for this. For spi you need a text file containing a fully qualified class name. Every jvm engine has it. When a test suite starts, it scans for client engine providers via ServiceLoader.