Lines Matching defs:Test
5 # Test object.
22 class Test:
25 results within a test log are stored in a main Test object as
33 subtests : List[Test] - list of subtests
40 """Creates Test object with default attributes."""
44 self.subtests = [] # type: List[Test]
49 """Returns string representation of a Test class object."""
50 return (f'Test({self.status}, {self.name}, {self.expected_count}, '
54 """Returns string representation of a Test class object."""
60 printer.print_with_timestamp(stdout.red('[ERROR]') + f' Test: {self.name}: {error_message}')
79 a Test.
119 """Returns the aggregated status of a Test using test
254 version_type: str, test: Test, printer: Printer) -> None:
265 test - Test object for current test being parsed
273 def parse_ktap_header(lines: LineStream, test: Test, printer: Printer) -> bool:
284 test - Test object for current test being parsed
305 def parse_test_header(lines: LineStream, test: Test) -> bool:
315 test - Test object for current test being parsed
329 def parse_test_plan(lines: LineStream, test: Test) -> bool:
341 test - Test object for current test being parsed
359 def peek_test_name_match(lines: LineStream, test: Test) -> bool:
371 test - Test object for current test being parsed
384 def parse_test_result(lines: LineStream, test: Test,
401 test - Test object for current test being parsed
492 def print_test_header(test: Test, printer: Printer) -> None:
501 test - Test object representing current test being printed
522 def format_test_result(test: Test, printer: Printer) -> str:
531 test - Test object representing current test being printed
549 def print_test_result(test: Test, printer: Printer) -> None:
557 test - Test object representing current test being printed
562 def print_test_footer(test: Test, printer: Printer) -> None:
570 test - Test object representing current test being printed
577 def print_test(test: Test, failed_only: bool, printer: Printer) -> None:
579 Prints Test object to given printer. For a child test, the result line is
585 test - Test object to print
604 def _summarize_failed_tests(test: Test) -> str:
607 def failed_names(test: Test, parent_name: str) -> List[str]:
636 def print_summary_line(test: Test, printer: Printer) -> None:
648 test - Test object representing current test being printed
670 def bubble_up_test_results(test: Test) -> None:
678 test - Test object for current test being parsed
690 def parse_test(lines: LineStream, expected_num: int, log: List[str], is_subtest: bool, printer: Printer) -> Test:
692 Finds next test to parse in LineStream, creates new Test object,
693 parses any subtests of the test, populates Test object with all
694 information (status, name) about the test and the Test objects for
695 any subtests, and then returns the Test object. The method accepts
734 - Test result line
749 Test object populated with characteristics and any subtests
751 test = Test()
787 sub_test = Test()
822 # Assumption: no subtests means CRASHED is from Test.__init__()
828 # Add statuses to TestCounts attribute in Test object
838 def parse_run_tests(kernel_output: Iterable[str], printer: Printer) -> Test:
848 Test - the main test object with all subtests.
852 test = Test()