Skip to content

testing: Benchmark prints nothing on failure #32066

@rogpeppe

Description

@rogpeppe

Benchmark functions can call Log, Error and Fatal, but if the benchmark is run with the Benchmark function, all messages are discarded.

https://play.golang.org/p/fd5Ed-il70V

Perhaps the messages should be printed to standard error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions