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 stdout.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) -> None:
265 test - Test object for current test being parsed
272 def parse_ktap_header(lines: LineStream, test: Test) -> bool:
283 test - Test object for current test being parsed
303 def parse_test_header(lines: LineStream, test: Test) -> bool:
313 test - Test object for current test being parsed
327 def parse_test_plan(lines: LineStream, test: Test) -> bool:
339 test - Test object for current test being parsed
357 def peek_test_name_match(lines: LineStream, test: Test) -> bool:
369 test - Test object for current test being parsed
382 def parse_test_result(lines: LineStream, test: Test,
399 test - Test object for current test being parsed
489 def print_test_header(test: Test) -> None:
498 test - Test object representing current test being printed
518 def format_test_result(test: Test) -> str:
527 test - Test object representing current test being printed
544 def print_test_result(test: Test) -> None:
552 test - Test object representing current test being printed
556 def print_test_footer(test: Test) -> None:
564 test - Test object representing current test being printed
572 def _summarize_failed_tests(test: Test) -> str:
575 def failed_names(test: Test, parent_name: str) -> List[str]:
604 def print_summary_line(test: Test) -> None:
616 test - Test object representing current test being printed
637 def bubble_up_test_results(test: Test) -> None:
645 test - Test object for current test being parsed
657 def parse_test(lines: LineStream, expected_num: int, log: List[str], is_subtest: bool) -> Test:
659 Finds next test to parse in LineStream, creates new Test object,
660 parses any subtests of the test, populates Test object with all
661 information (status, name) about the test and the Test objects for
662 any subtests, and then returns the Test object. The method accepts
701 - Test result line
715 Test object populated with characteristics and any subtests
717 test = Test()
754 sub_test = Test()
785 # Assumption: no subtests means CRASHED is from Test.__init__()
791 # Add statuses to TestCounts attribute in Test object
801 def parse_run_tests(kernel_output: Iterable[str]) -> Test:
810 Test - the main test object with all subtests.
814 test = Test()