diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-03-02 14:32:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 14:32:06 -0500 |
commit | 6c73adfc03e277f55cb1e4947b3a5e6c5ff4fe46 (patch) | |
tree | cabec7cc3abbb314ffd84668cac73be856a96623 | |
parent | 447d58b4ee8ea96b4757a5bb5f0b3be75af6c2a1 (diff) | |
parent | 7a2050d4d7eea672716a7d85c2fee2607879862a (diff) | |
download | googletest-6c73adfc03e277f55cb1e4947b3a5e6c5ff4fe46.tar.gz googletest-6c73adfc03e277f55cb1e4947b3a5e6c5ff4fe46.tar.bz2 googletest-6c73adfc03e277f55cb1e4947b3a5e6c5ff4fe46.zip |
Merge pull request #1486 from petrhosek/json-stacktrace
Use a full message in the JSON output for failures
-rw-r--r-- | googletest/src/gtest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 15cc9073..74c43a41 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -4012,9 +4012,9 @@ void JsonUnitTestResultPrinter::OutputJsonTestInfo(::std::ostream* stream, const std::string location = internal::FormatCompilerIndependentFileLocation(part.file_name(), part.line_number()); - const std::string summary = EscapeJson(location + "\n" + part.summary()); + const std::string message = EscapeJson(location + "\n" + part.message()); *stream << kIndent << " {\n" - << kIndent << " \"failure\": \"" << summary << "\",\n" + << kIndent << " \"failure\": \"" << message << "\",\n" << kIndent << " \"type\": \"\"\n" << kIndent << " }"; } |