Bug 992983 - Add test summary lines to gtest's automation-specific output format. r=benwa
authorChris Manchester <cmanchester@mozilla.com>
Tue, 18 Aug 2015 11:32:31 -0700
changeset 258251 5fca4c1a59a244581bab18e20ab6b8ccb5f0359d
parent 258250 5e045c356a613426c246c9f46ce15383e14178f1
child 258252 32454b3c22cd1bfa01306bae16d529617ae8bd70
push id29249
push userryanvm@gmail.com
push dateWed, 19 Aug 2015 11:17:27 +0000
treeherdermozilla-central@706b23a03d1c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbenwa
bugs992983
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 992983 - Add test summary lines to gtest's automation-specific output format. r=benwa
testing/gtest/mozilla/GTestRunner.cpp
--- a/testing/gtest/mozilla/GTestRunner.cpp
+++ b/testing/gtest/mozilla/GTestRunner.cpp
@@ -29,16 +29,18 @@ class MozillaPrinter : public EmptyTestE
 public:
   virtual void OnTestProgramStart(const UnitTest& /* aUnitTest */) override {
     printf("TEST-INFO | GTest unit test starting\n");
   }
   virtual void OnTestProgramEnd(const UnitTest& aUnitTest) override {
     printf("TEST-%s | GTest unit test: %s\n",
            aUnitTest.Passed() ? "PASS" : "UNEXPECTED-FAIL",
            aUnitTest.Passed() ? "passed" : "failed");
+    printf("Passed: %d\n", aUnitTest.successful_test_count());
+    printf("Failed: %d\n", aUnitTest.failed_test_count());
   }
   virtual void OnTestStart(const TestInfo& aTestInfo) override {
     mTestInfo = &aTestInfo;
     printf("TEST-START | %s.%s\n",
         mTestInfo->test_case_name(), mTestInfo->name());
   }
   virtual void OnTestPartResult(const TestPartResult& aTestPartResult) override {
     printf("TEST-%s | %s.%s | %s @ %s:%i\n",