Lines Matching refs:subtests
26 subtests.
31 expected_count : int - expected number of subtests (0 if single
32 test case and None if unknown expected number of subtests)
33 subtests : List[Test] - list of subtests
36 subtests or of the test itself if the test is a single
44 self.subtests = [] # type: List[Test]
51 f'{self.subtests}, {self.log}, {self.counts})')
97 object, where a test case is a test with no subtests.
331 Parses test plan line and stores the expected number of subtests in
337 - '1..[number of subtests]'
497 of subtests.
500 '=================== example (2 subtests) ==================='
515 message += f'({test.expected_count} subtests)'
593 for subtest in test.subtests:
596 elif test.subtests != []:
599 for subtest in test.subtests:
607 """Tries to summarize all the failing subtests in `test`."""
616 if not test.subtests: # this is a leaf node
621 failed_subtests = [sub for sub in test.subtests if not sub.ok_status()]
622 if parent_name and len(failed_subtests) == len(test.subtests):
643 counts of the statuses of the tests subtests or the test itself if it
644 has no subtests.
674 If the test has subtests, add the test counts of the subtests to the
676 status to crashed. Otherwise if the test has no subtests add the
682 subtests = test.subtests
685 for t in subtests:
695 parses any subtests of the test, populates Test object with all
697 any subtests, and then returns the Test object. The method accepts
708 [subtests]
719 [subtests]
726 [subtests]
733 [subtests]
751 Test object populated with characteristics and any subtests
780 subtests = []
783 # Loop to parse any subtests.
794 # parsing expected number of subtests, print
806 subtests.append(sub_test)
808 test.subtests = subtests
821 # Check for there being no subtests within parent test
822 if parent_test and len(subtests) == 0:
824 # Assumption: no subtests means CRASHED is from Test.__init__()
833 # If test has subtests and is not the main test object, print
850 Test - the main test object with all subtests.