cookie-cutter
cookie-cutter copied to clipboard
Support ability to test custom output sinks with `runIntegrationTest`
Currently when specified a custom output sink for a test app, it is not triggered when the app is passed to runIntegrationTest
. It seems that the custom sinks are ignored after published
or stored
messages are captured.
This prevents custom sinks to be ingregration-tested.
What kind of sink do you want to be able to test here? The general idea behind runIntegrationTest
is that you can test your message handler logic without triggering any side effects. Sinks are usually the part of your service that contains the code for the side effect.
Any sink that implements the IOutputSink
interface. I can also certainly test my custom sink in a unit test, but would be nice with runIntegrationTest