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.
329 Parses test plan line and stores the expected number of subtests in
335 - '1..[number of subtests]'
492 of subtests.
495 '=================== example (2 subtests) ==================='
509 message += f'({test.expected_count} subtests)'
573 """Tries to summarize all the failing subtests in `test`."""
582 if not test.subtests: # this is a leaf node
587 failed_subtests = [sub for sub in test.subtests if not sub.ok_status()]
588 if parent_name and len(failed_subtests) == len(test.subtests):
609 counts of the statuses of the tests subtests or the test itself if it
610 has no subtests.
639 If the test has subtests, add the test counts of the subtests to the
641 status to crashed. Otherwise if the test has no subtests add the
647 subtests = test.subtests
650 for t in subtests:
660 parses any subtests of the test, populates Test object with all
662 any subtests, and then returns the Test object. The method accepts
673 [subtests]
684 [subtests]
691 [subtests]
698 [subtests]
715 Test object populated with characteristics and any subtests
745 subtests = []
748 # Loop to parse any subtests.
759 # parsing expected number of subtests, print
771 subtests.append(sub_test)
773 test.subtests = subtests
782 # Check for there being no subtests within parent test
783 if parent_test and len(subtests) == 0:
785 # Assumption: no subtests means CRASHED is from Test.__init__()
794 # If test has subtests and is not the main test object, print
810 Test - the main test object with all subtests.