It prints FAIL or PASS for each test, so the simplest way might be to grep -c the output. I suspect that's not the answer you're looking for, however. The testing library in the core packages does not provide this information directly.
-je m'appelle rob On Sun, Oct 23, 2016 at 1:23 AM, Dave Hein <jenesuispasd...@gmail.com> wrote: > In the output of 'go test' I would like to see a summary containing the > count of the number of unit tests executed, the number passed and the > number failed. (Why? For reporting produced by automated build system.) > > Is there any way to get that information? > > Is there an alternative testing package that produces those counts? > > -- > Dave Hein > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.