Skip to content

Print successful test methods when running bazel test --test_summary=detailed #18685

@NelsonLi0701

Description

@NelsonLi0701

Description of the feature request:

Print the results of each test method when running the test module.

e.g.
zipalign_tests (6 Tests)
[1/6] Align#Unaligned: PASSED (0ms)
[2/6] Align#DoubleAligment: PASSED (0ms)
[3/6] Align#Holes: PASSED (0ms)
[4/6] Align#DifferenteOrders: PASSED (0ms)
[5/6] Align#DirectoryEntryDoNotRequireAlignment: PASSED (0ms)
[6/6] Align#DirectoryEntry: PASSED (0ms)

What underlying problem are you trying to solve with this feature?

Currently, regardless of any options (--test_summary, --test_output), Bazel's output does not print the passed test methods.

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

release 6.2.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

92619b01fa7bbaf14ea1ceab3c48033e58d83eb3

Have you found anything relevant by searching the web?

No

Any other information, logs, or outputs that you want to share?

Reproduce steps:
In https://github.com/bazelbuild/examples/tree/main/third-party-dependencies
Run bazel test :gtest_test

//:gtest_test                                                            PASSED in 0.0s

Cant not show any passed test methods.
expects:

//:gtest_test                                                            PASSED in 0.0s  
     [PASSED] SumbNegativeValues  (0.0s)
     [PASSED] SumPositiveValues  (0.0s)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions