31 @dataclass |
31 @dataclass |
32 class UTTestResult: |
32 class UTTestResult: |
33 """ |
33 """ |
34 Class containing the test result data. |
34 Class containing the test result data. |
35 """ |
35 """ |
36 category: ResultCategory # result category |
36 category: ResultCategory # result category |
37 status: str # test status |
37 status: str # test status |
38 name: str # test name |
38 name: str # test name |
39 id: str # test id |
39 id: str # test id |
40 description: str = "" # short description of test |
40 description: str = "" # short description of test |
41 message: str = "" # short result message |
41 message: str = "" # short result message |
42 extra: list = None # additional information text |
42 extra: list = None # additional information text |
43 duration: float = None # test duration |
43 duration: float = None # test duration |
44 filename: str = None # file name of a failed test |
44 filename: str = None # file name of a failed test |
45 lineno: int = None # line number of a failed test |
45 lineno: int = None # line number of a failed test |
|
46 subtestResult: bool = False # flag indicating the result of a subtest |
46 |
47 |
47 |
48 |
48 @dataclass |
49 @dataclass |
49 class UTTestConfig: |
50 class UTTestConfig: |
50 """ |
51 """ |
51 Class containing the test run configuration. |
52 Class containing the test run configuration. |
52 """ |
53 """ |
53 interpreter: str # path of the Python interpreter |
54 interpreter: str # path of the Python interpreter |
54 discover: bool # auto discovery flag |
55 discover: bool # auto discovery flag |
55 discoveryStart: str # start directory for auto discovery |
56 discoveryStart: str # start directory for auto discovery |
56 testFilename: str # name of the test script |
57 testFilename: str # name of the test script |
57 testName: str # name of the test function |
58 testName: str # name of the test function |
58 failFast: bool # stop on first fail |
59 failFast: bool # stop on first fail |
59 collectCoverage: bool # coverage collection flag |
60 collectCoverage: bool # coverage collection flag |
60 eraseCoverage: bool # erase coverage data first |
61 eraseCoverage: bool # erase coverage data first |
61 |
62 |
62 |
63 |
63 class UTExecutorBase(QObject): |
64 class UTExecutorBase(QObject): |
64 """ |
65 """ |
65 Base class for test framework specific implementations. |
66 Base class for test framework specific implementations. |