src/eric7/Documentation/Source/eric7.Testing.Interfaces.TestExecutorBase.html

branch
eric7
changeset 10407
03b41b9bb392
parent 10259
b51dfacef37f
child 10415
af9a6dac2611
equal deleted inserted replaced
10406:27b7580aa784 10407:03b41b9bb392
54 <h3>Derived from</h3> 54 <h3>Derived from</h3>
55 None 55 None
56 <h3>Class Attributes</h3> 56 <h3>Class Attributes</h3>
57 57
58 <table> 58 <table>
59 <tr><td>collectCoverage</td></tr><tr><td>coverageFile</td></tr><tr><td>discover</td></tr><tr><td>discoveryStart</td></tr><tr><td>eraseCoverage</td></tr><tr><td>failFast</td></tr><tr><td>failedOnly</td></tr><tr><td>interpreter</td></tr><tr><td>testFilename</td></tr><tr><td>testMarkerExpression</td></tr><tr><td>testName</td></tr><tr><td>testNamePattern</td></tr> 59 <tr><td>collectCoverage</td></tr><tr><td>coverageFile</td></tr><tr><td>discover</td></tr><tr><td>discoverOnly</td></tr><tr><td>discoveryStart</td></tr><tr><td>eraseCoverage</td></tr><tr><td>failFast</td></tr><tr><td>failedOnly</td></tr><tr><td>interpreter</td></tr><tr><td>testCases</td></tr><tr><td>testFilename</td></tr><tr><td>testMarkerExpression</td></tr><tr><td>testName</td></tr><tr><td>testNamePattern</td></tr>
60 </table> 60 </table>
61 <h3>Class Methods</h3> 61 <h3>Class Methods</h3>
62 62
63 <table> 63 <table>
64 <tr><td>None</td></tr> 64 <tr><td>None</td></tr>
90 <dd> 90 <dd>
91 ) emitted when errors 91 ) emitted when errors
92 are encountered during test collection. Tuple elements are the 92 are encountered during test collection. Tuple elements are the
93 test name and the error message. 93 test name and the error message.
94 </dd> 94 </dd>
95 <dt>collected(list of tuple of (str, str, str)</dt> 95 <dt>collected(list of tuple of (str, str, str, str, int, list)</dt>
96 <dd> 96 <dd>
97 ) emitted after all tests 97 ) emitted after
98 have been collected. Tuple elements are the test id, the test name and 98 all tests have been collected. Tuple elements are the test id, the test name,
99 a short description of the test. 99 a short description of the test, the test file name, the line number of
100 the test and the elements of the test path as a list.
100 </dd> 101 </dd>
101 <dt>coverageDataSaved(str)</dt> 102 <dt>coverageDataSaved(str)</dt>
102 <dd> 103 <dd>
103 emitted after the coverage data was saved. 104 emitted after the coverage data was saved.
104 The element is the absolute path of the coverage data file. 105 The element is the absolute path of the coverage data file.
106 </dd>
107 <dt>discoveryAboutToBeStarted()</dt>
108 <dd>
109 emitted just before the test discovery
110 will be started
111 </dd>
112 <dt>discoveryFinished(int, float)</dt>
113 <dd>
114 emitted when the discovery has finished.
115 The elements are the number of discovered tests and the duration in seconds.
105 </dd> 116 </dd>
106 <dt>startTest(tuple of (str, str, str)</dt> 117 <dt>startTest(tuple of (str, str, str)</dt>
107 <dd> 118 <dd>
108 emitted before tests are run. 119 emitted before tests are run.
109 Tuple elements are test id, test name and short description. 120 Tuple elements are test id, test name and short description.
128 be started. 139 be started.
129 </dd> 140 </dd>
130 <dt>testRunFinished(int, float)</dt> 141 <dt>testRunFinished(int, float)</dt>
131 <dd> 142 <dd>
132 emitted when the test run has finished. 143 emitted when the test run has finished.
133 The elements are the number of tests run and the duration in seconds 144 The elements are the number of tests run and the duration in seconds.
134 </dd> 145 </dd>
135 </dl> 146 </dl>
136 <h3>Derived from</h3> 147 <h3>Derived from</h3>
137 QObject 148 QObject
138 <h3>Class Attributes</h3> 149 <h3>Class Attributes</h3>
164 <tr> 175 <tr>
165 <td><a href="#TestExecutorBase.createArguments">createArguments</a></td> 176 <td><a href="#TestExecutorBase.createArguments">createArguments</a></td>
166 <td>Public method to create the arguments needed to start the test process.</td> 177 <td>Public method to create the arguments needed to start the test process.</td>
167 </tr> 178 </tr>
168 <tr> 179 <tr>
180 <td><a href="#TestExecutorBase.discover">discover</a></td>
181 <td>Public method to start the test discovery process.</td>
182 </tr>
183 <tr>
169 <td><a href="#TestExecutorBase.finished">finished</a></td> 184 <td><a href="#TestExecutorBase.finished">finished</a></td>
170 <td>Public method handling the unit test process been finished.</td> 185 <td>Public method handling the unit test process been finished.</td>
171 </tr> 186 </tr>
172 <tr> 187 <tr>
173 <td><a href="#TestExecutorBase.getMarkers">getMarkers</a></td> 188 <td><a href="#TestExecutorBase.getMarkers">getMarkers</a></td>
313 <dd> 328 <dd>
314 this method needs to be implemented by 329 this method needs to be implemented by
315 derived classes 330 derived classes
316 </dd> 331 </dd>
317 </dl> 332 </dl>
333 <a NAME="TestExecutorBase.discover" ID="TestExecutorBase.discover"></a>
334 <h4>TestExecutorBase.discover</h4>
335 <b>discover</b>(<i>config, pythonpath</i>)
336
337 <p>
338 Public method to start the test discovery process.
339 </p>
340 <dl>
341
342 <dt><i>config</i> (TestConfig)</dt>
343 <dd>
344 configuration for the test discovery
345 </dd>
346 <dt><i>pythonpath</i> (list of str)</dt>
347 <dd>
348 list of directories to be added to the Python path
349 </dd>
350 </dl>
351 <dl>
352
353 <dt>Raises <b>RuntimeError</b>:</dt>
354 <dd>
355 raised if the the test discovery process did not start
356 </dd>
357 <dt>Raises <b>ValueError</b>:</dt>
358 <dd>
359 raised if no start directory for the test discovery was
360 given
361 </dd>
362 </dl>
318 <a NAME="TestExecutorBase.finished" ID="TestExecutorBase.finished"></a> 363 <a NAME="TestExecutorBase.finished" ID="TestExecutorBase.finished"></a>
319 <h4>TestExecutorBase.finished</h4> 364 <h4>TestExecutorBase.finished</h4>
320 <b>finished</b>(<i></i>) 365 <b>finished</b>(<i></i>)
321 366
322 <p> 367 <p>

eric ide

mercurial