The REGISTER_REPORTER macro, which is used to register a reporter class into the main test registry, uses global state for the reporter instance. This is usually fine, since there is normally only one registry anyway, but it is uncomfortable. Ideally, the registry itself would own the reporter instance. This would prevent any risk of accidental sharing of state between registry instances.
The
REGISTER_REPORTER
macro, which is used to register a reporter class into the main test registry, uses global state for the reporter instance. This is usually fine, since there is normally only one registry anyway, but it is uncomfortable. Ideally, the registry itself would own the reporter instance. This would prevent any risk of accidental sharing of state between registry instances.