src/eric7/Testing/Interfaces/TestExecutorBase.py

branch
eric7
changeset 10404
f7d9c31f0c38
parent 10069
435cc5875135
child 10405
df7e1694d0eb
equal deleted inserted replaced
10403:ea3320d5e8e9 10404:f7d9c31f0c38
42 id: str # test id 42 id: str # test id
43 description: str = "" # short description of test 43 description: str = "" # short description of test
44 message: str = "" # short result message 44 message: str = "" # short result message
45 extra: list = None # additional information text 45 extra: list = None # additional information text
46 duration: float = None # test duration 46 duration: float = None # test duration
47 filename: str = None # file name of a failed test 47 filename: str = None # file name of a (failed) test
48 lineno: int = None # line number of a failed test 48 lineno: int = None # line number of a (failed) test
49 subtestResult: bool = False # flag indicating the result of a subtest 49 subtestResult: bool = False # flag indicating the result of a subtest
50 50
51 51
52 @dataclass 52 @dataclass
53 class TestConfig: 53 class TestConfig:
71 71
72 class TestExecutorBase(QObject): 72 class TestExecutorBase(QObject):
73 """ 73 """
74 Base class for test framework specific implementations. 74 Base class for test framework specific implementations.
75 75
76 @signal collected(list of tuple of (str, str, str)) emitted after all tests 76 @signal collected(list of tuple of (str, str, str, str, int)) emitted after all
77 have been collected. Tuple elements are the test id, the test name and 77 tests have been collected. Tuple elements are the test id, the test name,
78 a short description of the test. 78 a short description of the test, the test file name and the line number of
79 the test.
79 @signal collectError(list of tuple of (str, str)) emitted when errors 80 @signal collectError(list of tuple of (str, str)) emitted when errors
80 are encountered during test collection. Tuple elements are the 81 are encountered during test collection. Tuple elements are the
81 test name and the error message. 82 test name and the error message.
82 @signal startTest(tuple of (str, str, str) emitted before tests are run. 83 @signal startTest(tuple of (str, str, str) emitted before tests are run.
83 Tuple elements are test id, test name and short description. 84 Tuple elements are test id, test name and short description.

eric ide

mercurial