Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
run_tests._BundledTestRunner Class Reference
Inheritance diagram for run_tests._BundledTestRunner:

Public Member Functions

 __init__ (self, str target_id, Set[str] package_deps, List[TestCase] tests, str logs_dir)
 
CompletedProcess run_test (self)
 

Public Attributes

 tests
 
 logs_dir
 

Protected Attributes

 _target_id
 

Detailed Description

Definition at line 57 of file run_tests.py.

Constructor & Destructor Documentation

◆ __init__()

run_tests._BundledTestRunner.__init__ (   self,
str  target_id,
Set[str]  package_deps,
List[TestCase tests,
str  logs_dir 
)

Definition at line 60 of file run_tests.py.

60 def __init__(self, target_id: str, package_deps: Set[str], tests: List[TestCase], logs_dir: str):
61 super().__init__(OUT_DIR, [], None, target_id, list(package_deps))
62 self.tests = tests
63 self.logs_dir = logs_dir
64

Member Function Documentation

◆ run_test()

CompletedProcess run_tests._BundledTestRunner.run_test (   self)

Definition at line 65 of file run_tests.py.

65 def run_test(self) -> CompletedProcess:
66 returncode = 0
67 for test in self.tests:
68 assert test.package.endswith('.cm')
69 test_runner = ExecutableTestRunner(
70 OUT_DIR, test.args.split(), test.package, self._target_id, None, self.logs_dir, [], None
71 )
72 # pylint: disable=protected-access
73 test_runner._package_deps = self._package_deps
74 result = test_runner.run_test().returncode
75 logging.info('Result of test %s is %s', test, result)
76 if result != 0:
77 returncode = result
78 return CompletedProcess(args='', returncode=returncode)
79
80
81# Visible for testing

Member Data Documentation

◆ _target_id

run_tests._BundledTestRunner._target_id
protected

Definition at line 70 of file run_tests.py.

◆ logs_dir

run_tests._BundledTestRunner.logs_dir

Definition at line 63 of file run_tests.py.

◆ tests

run_tests._BundledTestRunner.tests

Definition at line 62 of file run_tests.py.


The documentation for this class was generated from the following file: