You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 21, 2025. It is now read-only.
This is an extension of the discussion above ^ re: testability in the FastForwardReporter in semantic-metrics repo. Basically, in a production environment the FastForward client would be already running within the container, but in a local unit testing environment this can be pretty cumbersome to set up. I think making FastForward an abstract class (with a default implementation) would be really helpful, because for simple unit tests we could plug in a stubbed implementation that doesn't require a datagram socket running and can easily verify the metrics being sent. I initially suggested making an abstraction layer for it in semantic-metrics, but they suggested the change be more appropriate here.
Prior discussion here: spotify/semantic-metrics#76
This is an extension of the discussion above ^ re: testability in the FastForwardReporter in
semantic-metricsrepo. Basically, in a production environment theFastForwardclient would be already running within the container, but in a local unit testing environment this can be pretty cumbersome to set up. I think makingFastForwardan abstract class (with a default implementation) would be really helpful, because for simple unit tests we could plug in a stubbed implementation that doesn't require a datagram socket running and can easily verify the metrics being sent. I initially suggested making an abstraction layer for it insemantic-metrics, but they suggested the change be more appropriate here.for example:
and a user could create their own stub implementation for unit testing, like:
wdyt? I'm happy to make the PR myself it sounds reasonable.