cookie-cutter icon indicating copy to clipboard operation
cookie-cutter copied to clipboard

Support ability to test custom output sinks with `runIntegrationTest`

Open hienqnguyen opened this issue 5 years ago • 2 comments

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.

hienqnguyen avatar Feb 26 '20 18:02 hienqnguyen

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.

sklose avatar Feb 28 '20 13:02 sklose

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

hienqnguyen avatar Feb 28 '20 15:02 hienqnguyen