Lines Matching defs:test_suite

368 static bool TestSuitePassed(const TestSuite* test_suite) {
369 return test_suite->should_run() && test_suite->Passed();
373 static bool TestSuiteFailed(const TestSuite* test_suite) {
374 return test_suite->should_run() && test_suite->Failed();
377 // Returns true if and only if test_suite contains at least one test that
379 static bool ShouldRunTestSuite(const TestSuite* test_suite) {
380 return test_suite->should_run();
2302 const TestSuite* const test_suite = impl->current_test_suite();
2305 const TestInfo* const first_test_info = test_suite->test_info_list()[0];
3105 static void PrintTestName(const char* test_suite, const char* test) {
3106 printf("%s.%s", test_suite, test);
3117 void OnTestSuiteStart(const TestSuite& test_suite) override;
3127 void OnTestSuiteEnd(const TestSuite& test_suite) override;
3198 const TestSuite& test_suite) {
3200 FormatCountableNoun(test_suite.test_to_run_count(), "test", "tests");
3202 printf("%s from %s", counts.c_str(), test_suite.name());
3203 if (test_suite.type_param() == nullptr) {
3206 printf(", where %s = %s\n", kTypeParamLabel, test_suite.type_param());
3269 void PrettyUnitTestResultPrinter::OnTestSuiteEnd(const TestSuite& test_suite) {
3273 FormatCountableNoun(test_suite.test_to_run_count(), "test", "tests");
3275 printf("%s from %s (%s ms total)\n\n", counts.c_str(), test_suite.name(),
3276 internal::StreamableToString(test_suite.elapsed_time()).c_str());
3296 const TestSuite& test_suite = *unit_test.GetTestSuite(i);
3297 if (!test_suite.should_run() || (test_suite.failed_test_count() == 0)) {
3300 for (int j = 0; j < test_suite.total_test_count(); ++j) {
3301 const TestInfo& test_info = *test_suite.GetTestInfo(j);
3306 printf("%s.%s", test_suite.name(), test_info.name());
3321 const TestSuite& test_suite = *unit_test.GetTestSuite(i);
3322 if (!test_suite.should_run() || (test_suite.skipped_test_count() == 0)) {
3325 for (int j = 0; j < test_suite.total_test_count(); ++j) {
3326 const TestInfo& test_info = *test_suite.GetTestInfo(j);
3331 printf("%s.%s", test_suite.name(), test_info.name());
3574 const TestSuite& test_suite);
3857 const TestSuite& test_suite) {
3860 OutputXmlAttribute(stream, kTestsuite, "name", test_suite.name());
3862 StreamableToString(test_suite.reportable_test_count()));
3865 StreamableToString(test_suite.failed_test_count()));
3868 StreamableToString(test_suite.reportable_disabled_test_count()));
3871 FormatTimeInMillisAsSeconds(test_suite.elapsed_time()));
3874 FormatEpochTimeInMillisAsIso8601(test_suite.start_timestamp()));
3875 *stream << TestPropertiesAsXmlAttributes(test_suite.ad_hoc_test_result());
3878 for (int i = 0; i < test_suite.total_test_count(); ++i) {
3879 if (test_suite.GetTestInfo(i)->is_reportable())
3880 OutputXmlTestInfo(stream, test_suite.name(), *test_suite.GetTestInfo(i));
3931 for (auto test_suite : test_suites) {
3932 total_tests += test_suite->total_test_count();
3939 for (auto test_suite : test_suites) {
3940 PrintXmlTestSuite(stream, *test_suite);
4017 const TestSuite& test_suite);
4228 std::ostream* stream, const TestSuite& test_suite) {
4233 OutputJsonKey(stream, kTestsuite, "name", test_suite.name(), kIndent);
4234 OutputJsonKey(stream, kTestsuite, "tests", test_suite.reportable_test_count(),
4238 test_suite.failed_test_count(), kIndent);
4240 test_suite.reportable_disabled_test_count(), kIndent);
4244 FormatEpochTimeInMillisAsRFC3339(test_suite.start_timestamp()),
4247 FormatTimeInMillisAsDuration(test_suite.elapsed_time()),
4249 *stream << TestPropertiesAsJson(test_suite.ad_hoc_test_result(), kIndent)
4256 for (int i = 0; i < test_suite.total_test_count(); ++i) {
4257 if (test_suite.GetTestInfo(i)->is_reportable()) {
4263 OutputJsonTestInfo(stream, test_suite.name(), *test_suite.GetTestInfo(i));
4321 for (auto test_suite : test_suites) {
4322 total_tests += test_suite->total_test_count();
5159 // Returns true if and only if the name of test_suite matches name_.
5160 bool operator()(const TestSuite* test_suite) const {
5161 return test_suite != nullptr &&
5162 strcmp(test_suite->name(), name_.c_str()) == 0;
5186 const auto test_suite =
5190 if (test_suite != test_suites_.rend()) return *test_suite;
5504 for (auto* test_suite : test_suites_) {
5505 const std::string& test_suite_name = test_suite->name();
5506 test_suite->set_should_run(false);
5508 for (size_t j = 0; j < test_suite->test_info_list().size(); j++) {
5509 TestInfo* const test_info = test_suite->test_info_list()[j];
5537 test_suite->set_should_run(test_suite->should_run() || is_selected);
5570 for (auto* test_suite : test_suites_) {
5573 for (size_t j = 0; j < test_suite->test_info_list().size(); j++) {
5574 const TestInfo* const test_info = test_suite->test_info_list()[j];
5578 printf("%s.", test_suite->name());
5579 if (test_suite->type_param() != nullptr) {
5583 PrintOnOneLine(test_suite->type_param(), kMaxParamLength);
5668 for (auto& test_suite : test_suites_) {
5669 test_suite->ShuffleTests(random());