diff options
author | Abseil Team <absl-team@google.com> | 2019-07-25 23:04:39 (GMT) |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2019-07-26 00:53:46 (GMT) |
commit | 2134e3fd857d952e03ce76064fad5ac6e9036104 (patch) | |
tree | 5c44ea1333703c6806eaef40ae8e9f2e9b4fea07 /googletest/test/gtest_xml_test_utils.py | |
parent | 373ed74af59d344324260bca013656ce41264264 (diff) | |
download | googletest-2134e3fd857d952e03ce76064fad5ac6e9036104.zip googletest-2134e3fd857d952e03ce76064fad5ac6e9036104.tar.gz googletest-2134e3fd857d952e03ce76064fad5ac6e9036104.tar.bz2 |
Googletest export
Adds ISO8601 timestamps to XML output and RFC3339 timestamps to JSON output.
Adds timestamps to testsuites, testsuite and testcases structured JSON/XML output for better reporting how/where time is spent on tests.
PiperOrigin-RevId: 260039817
Diffstat (limited to 'googletest/test/gtest_xml_test_utils.py')
-rwxr-xr-x | googletest/test/gtest_xml_test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/test/gtest_xml_test_utils.py b/googletest/test/gtest_xml_test_utils.py index afcf55e..9914a49 100755 --- a/googletest/test/gtest_xml_test_utils.py +++ b/googletest/test/gtest_xml_test_utils.py @@ -169,7 +169,7 @@ class GTestXMLTestCase(gtest_test_utils.TestCase): * The stack traces are removed. """ - if element.tagName == 'testsuites': + if element.tagName in ('testsuites', 'testsuite', 'testcase'): timestamp = element.getAttributeNode('timestamp') timestamp.value = re.sub(r'^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d$', '*', timestamp.value) |