client_golang icon indicating copy to clipboard operation
client_golang copied to clipboard

Add test tools based on the new type structure

Open beorn7 opened this issue 8 years ago • 3 comments

Once #223 is done, we can make use of it for better testing tools (like mocking helpers for the various interfaces we end up with).

beorn7 avatar Aug 19 '16 22:08 beorn7

Hello @beorn7 , I stumbled upon this ticket investigating about testability of Prometheus instrumentation. Are there any news/plans related to this ticket and #223 ? Thanks.

marco-m avatar May 14 '19 14:05 marco-m

This is all planned for the v0.10 (soon to be renamed v2) milestone. I still need to finalize the grand design of it to enable detailed work like this one.

Have you looked at https://godoc.org/github.com/prometheus/client_golang/prometheus/testutil ? It should satisfy most of the current needs.

beorn7 avatar May 14 '19 18:05 beorn7

I will look at testutil, thanks for the prompt answer!

marco-m avatar May 14 '19 20:05 marco-m