Buffer stdout output for enhanced reporter

XMLWordPrintableJSON

    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Similar to death tests, I think we can capture everything output to stdout and stderr when enhanced reporter buffering is turned on. Or else we're left with awkward stdout output from random tests:

      Executing tests from //src/mongo/bson:bson_test
      -----------------------------------------------------------------------------
      {"t":{"$date":"2026-06-11T04:56:52.616+00:00"},"s":"I",  "c":"-",        "id":8991200, "ctx":"main","msg":"Shuffling initializers","attr":{"seed":322104700}}
      NOTE: Using mongo output format. Set --enhancedReporter=false to disable.
      NOTE: Stdout is a TTY and running in bazel. Will not colorize and will emit a spinner.
      NOTE: Hiding output for passing tests. Pass --showEachTest to see everything.
      Running 266 tests in 26 suites [ 0 of 1 ]
      testIterators passed: 21fields, total size 421
      testIterators passed: 21fields, total size 29435 

            Assignee:
            Alex Li
            Reporter:
            Alex Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: