Function addReporter

Adds an embeded reporter listener to the LifeCycle listeners collection

void addReporter(
  string name,
  Settings settings
);

Example

addReporter throws for the unknown reporter "nope"

auto old = LifeCycleListeners.instance;
LifeCycleListeners.instance = new LifeCycleListeners;
scope (exit) LifeCycleListeners.instance = old;

({ addReporter("nope", Settings()); }).should.throwException!Exception.withMessage("There is no `nope` reporter");