Mbed Host Tests
|
Public Member Functions | |
__init__ (self, options) | |
run (self) | |
setup (self) | |
Setup and check if configuration for test is correct. | |
notify (self, msg) | |
On screen notification function. | |
print_result (self, result) | |
Test result unified printing function. | |
finish (self) | |
get_hello_string (self) | |
![]() | |
enum (self, **enums) | |
get_test_result_int (self, test_result_str) | |
Maps test result string to unique integer. | |
__getitem__ (self, test_result_str) | |
Returns numerical result code. | |
Public Attributes | |
mbed | |
RESULT_END | |
![]() | |
TestResults | |
TestResultsList | |
Base class for host test's test runner
Definition at line 87 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.__init__ | ( | self, | |
options | |||
) |
ctor
Reimplemented from mbed_host_tests.host_tests_runner.host_test.HostTestResults.
Reimplemented in mbed_host_tests.host_tests_runner.host_test.DefaultTestSelectorBase, and mbed_host_tests.host_tests_runner.host_test_default.DefaultTestSelector.
Definition at line 90 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.finish | ( | self | ) |
dctor for this class, finishes tasks and closes resources
Definition at line 122 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.get_hello_string | ( | self | ) |
Hello string used as first print
Definition at line 127 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.notify | ( | self, | |
msg | |||
) |
On screen notification function.
msg | Text message sent to stdout directly |
Definition at line 108 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.print_result | ( | self, | |
result | |||
) |
Test result unified printing function.
result | Should be a member of HostTestResults.RESULT_* enums |
Definition at line 115 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.run | ( | self | ) |
Test runner for host test. This function will start executing test and forward test result via serial port to test suite
Definition at line 96 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.setup | ( | self | ) |
Setup and check if configuration for test is correct.
This function can for example check if serial port is already opened
Definition at line 102 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.mbed |
Definition at line 94 of file host_test.py.
mbed_host_tests.host_tests_runner.host_test.Test.RESULT_END |
Definition at line 120 of file host_test.py.