-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print successful test methods when running bazel test --test_summary=detailed
#18685
Comments
Additional context: this is necessary to help migrate existing AOSP users using a custom |
@lberki thoughts about printing passing test cases in Something like this: |
That sounds like a very reasonable approach. |
@NelsonLi0701 do you want to try implementing this and contribute to Bazel? |
Sounds good to me. |
Thanks, assigning it to you. When you have the pull request ready, send it to me and @lberki. Let me know if you need pointers on setting up the Bazel project for development. |
bazel test
bazel test --test_summary=detailed
I tried to build bazel but it failed.
|
@meteorcloudy have you seen this before? |
Looks like an issue with JDK17 - passing |
This is a known non-deterministic failure of Java compilation with (most) JDKs: #3236 I will send a PR to flip the flag that fixes this for Bazel. |
Thanks, I used JDK11 and the problem be solved. |
I tried to run the unitest for command:
|
Can you also print the test logs with |
Sure, this is the error message: Command: Error Message:
|
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685
Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix bazelbuild#18685 Closes bazelbuild#19099. RELNOTES: The `--test_summary=detailed` option now also prints passed test cases. PiperOrigin-RevId: 553737487 Change-Id: I332b70d916394de7caed7a07667b46087724a6c1
) Cherry-pick of c75fda9 Previously, Bazel only printed Failed methods in the detailed test summary when using the `--test_summary=detailed` option. With this change, both Passed and Failed methods are now printed, providing a more comprehensive view of the test results. Fix #18685 Closes #19099. RELNOTES: The `--test_summary=detailed` option now also prints passed test cases. PiperOrigin-RevId: 553737487 Change-Id: I332b70d916394de7caed7a07667b46087724a6c1 Co-authored-by: NelsonLi0701 <[email protected]>
A fix for this issue has been included in Bazel 6.4.0 RC1. Please test out the release candidate and report any issues as soon as possible. Thanks! |
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
returnsdevelopment 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
?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
Cant not show any passed test methods.
expects:
The text was updated successfully, but these errors were encountered: