FairMQ/fairmq/docs/Development.md
Alexey Rybalchenko b228788cc0 Logger: Allow adding custom sinks
(example in logger/loggerTest.cxx, docs in fairmq/docs/Logging.md)
2018-01-26 16:06:19 +01:00

730 B

Back

4. Development

4.1 Testing

For unit testing it is often not feasible to boot up a full-blown distributed system with dozens of processes.

In some scenarios it is useful to not even instantiate a FairMQDevice at all. Please see this example for single and multi threaded unit test without a device instance. If you store your transport factories and channels on the heap, pls make sure, you destroy the channels before you destroy the related transport factory for proper shutdown. Channels provide all the Send/Receive and New*Message/New*Poller APIs provided by the device too.

TODO Multiple devices in one process.

Back