Skip to content

proposal: testing: verbose output should print package path before printing test output #61647

@willfaught

Description

@willfaught

This makes it clear which package is being tested as the test output is printed.

For example, at the end of

=== RUN   TestFoo
--- PASS: TestFoo (0.00s)
PASS
ok  	example.com/foo	0.138s
=== RUN   TestBar

which package are we in? We don't know from the output. For large projects, where there are too many packages to memorize, especially their lexicographic order, this is valuable when you spot output you immediately want to investigate, but it takes a long time for the full package testing to finish, at which point the actual package path is printed out.

So, it would instead be something like

=== RUN   example.com/foo
=== RUN   TestFoo
--- PASS: TestFoo (0.00s)
--- PASS: example.com/foo	0.138s
=== RUN   example.com/bar
=== RUN   TestBar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions