Merge pull request #4036 from zloylos:fix-output-json-3884
PiperOrigin-RevId: 482287697 Change-Id: I1179a1570cd64fcb156bda26e5c779b876c51742
This commit is contained in:
commit
e07617d6c6
@ -4829,6 +4829,9 @@ void JsonUnitTestResultPrinter::PrintJsonUnitTest(std::ostream* stream,
|
|||||||
// If there was a test failure outside of one of the test suites (like in a
|
// If there was a test failure outside of one of the test suites (like in a
|
||||||
// test environment) include that in the output.
|
// test environment) include that in the output.
|
||||||
if (unit_test.ad_hoc_test_result().Failed()) {
|
if (unit_test.ad_hoc_test_result().Failed()) {
|
||||||
|
if (comma) {
|
||||||
|
*stream << ",\n";
|
||||||
|
}
|
||||||
OutputJsonTestSuiteForTestResult(stream, unit_test.ad_hoc_test_result());
|
OutputJsonTestSuiteForTestResult(stream, unit_test.ad_hoc_test_result());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user