Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: base/test/launcher/unit_test_launcher.cc

Issue 2846673004: Set limit for number of failed EXPECTs per test in test launcher output. (Closed)
Patch Set: Fix missed constant usage. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/test/gtest_xml_unittest_result_printer.cc ('k') | base/test/test_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/test/launcher/unit_test_launcher.h" 5 #include "base/test/launcher/unit_test_launcher.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 " --test-launcher-retry-limit=N\n" 85 " --test-launcher-retry-limit=N\n"
86 " Sets the limit of test retries on failures to N.\n" 86 " Sets the limit of test retries on failures to N.\n"
87 "\n" 87 "\n"
88 " --test-launcher-summary-output=PATH\n" 88 " --test-launcher-summary-output=PATH\n"
89 " Saves a JSON machine-readable summary of the run.\n" 89 " Saves a JSON machine-readable summary of the run.\n"
90 "\n" 90 "\n"
91 " --test-launcher-print-test-stdio=auto|always|never\n" 91 " --test-launcher-print-test-stdio=auto|always|never\n"
92 " Controls when full test output is printed.\n" 92 " Controls when full test output is printed.\n"
93 " auto means to print it when the test failed.\n" 93 " auto means to print it when the test failed.\n"
94 "\n" 94 "\n"
95 " --test-launcher-test-part-results-limit=N\n"
96 " Sets the limit of failed EXPECT/ASSERT entries in the xml and\n"
97 " JSON outputs per test to N (default N=10). Negative value \n"
98 " will disable this limit.\n"
99 "\n"
95 " --test-launcher-total-shards=N\n" 100 " --test-launcher-total-shards=N\n"
96 " Sets the total number of shards to N.\n" 101 " Sets the total number of shards to N.\n"
97 "\n" 102 "\n"
98 " --test-launcher-shard-index=N\n" 103 " --test-launcher-shard-index=N\n"
99 " Sets the shard index to run to N (from 0 to TOTAL - 1).\n"); 104 " Sets the shard index to run to N (from 0 to TOTAL - 1).\n");
100 fflush(stdout); 105 fflush(stdout);
101 } 106 }
102 107
103 class DefaultUnitTestPlatformDelegate : public UnitTestPlatformDelegate { 108 class DefaultUnitTestPlatformDelegate : public UnitTestPlatformDelegate {
104 public: 109 public:
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 const std::vector<std::string>& test_names) { 641 const std::vector<std::string>& test_names) {
637 ThreadTaskRunnerHandle::Get()->PostTask( 642 ThreadTaskRunnerHandle::Get()->PostTask(
638 FROM_HERE, 643 FROM_HERE,
639 BindOnce(&RunUnitTestsSerially, test_launcher, platform_delegate_, 644 BindOnce(&RunUnitTestsSerially, test_launcher, platform_delegate_,
640 test_names, 645 test_names,
641 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0)); 646 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0));
642 return test_names.size(); 647 return test_names.size();
643 } 648 }
644 649
645 } // namespace base 650 } // namespace base
OLDNEW
« no previous file with comments | « base/test/gtest_xml_unittest_result_printer.cc ('k') | base/test/test_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698