5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.Testing.Interfaces.UnittestExecutor</h1> |
9 <h1>eric7.Testing.Interfaces.UnittestExecutor</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing the executor for the standard 'unittest' framework. |
11 Module implementing the executor for the standard 'unittest' framework. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#UnittestExecutor">UnittestExecutor</a></td> |
22 <td><a href="#UnittestExecutor">UnittestExecutor</a></td> |
25 <td>Class implementing the executor for the standard 'unittest' framework.</td> |
23 <td>Class implementing the executor for the standard 'unittest' framework.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
|
30 <table> |
28 <table> |
31 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
32 </table> |
30 </table> |
|
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="UnittestExecutor" ID="UnittestExecutor"></a> |
34 <a NAME="UnittestExecutor" ID="UnittestExecutor"></a> |
36 <h2>UnittestExecutor</h2> |
35 <h2>UnittestExecutor</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing the executor for the standard 'unittest' framework. |
37 Class implementing the executor for the standard 'unittest' framework. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Derived from</h3> |
40 <h3>Derived from</h3> |
42 TestExecutorBase |
41 TestExecutorBase |
43 <h3>Class Attributes</h3> |
42 <h3>Class Attributes</h3> |
44 |
43 <table> |
45 <table> |
44 <tr><td>module</td></tr> |
46 <tr><td>module</td></tr><tr><td>name</td></tr><tr><td>runner</td></tr> |
45 <tr><td>name</td></tr> |
47 </table> |
46 <tr><td>runner</td></tr> |
|
47 </table> |
|
48 |
48 <h3>Class Methods</h3> |
49 <h3>Class Methods</h3> |
49 |
|
50 <table> |
50 <table> |
51 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
52 </table> |
52 </table> |
|
53 |
53 <h3>Methods</h3> |
54 <h3>Methods</h3> |
54 |
55 <table> |
55 <table> |
|
56 |
|
57 <tr> |
56 <tr> |
58 <td><a href="#UnittestExecutor.__init__">UnittestExecutor</a></td> |
57 <td><a href="#UnittestExecutor.__init__">UnittestExecutor</a></td> |
59 <td>Constructor</td> |
58 <td>Constructor</td> |
60 </tr> |
59 </tr> |
61 <tr> |
60 <tr> |
93 <tr> |
92 <tr> |
94 <td><a href="#UnittestExecutor.supportsPatterns">supportsPatterns</a></td> |
93 <td><a href="#UnittestExecutor.supportsPatterns">supportsPatterns</a></td> |
95 <td>Public method to indicate the support for test filtering using test name patterns or a test name pattern expression.</td> |
94 <td>Public method to indicate the support for test filtering using test name patterns or a test name pattern expression.</td> |
96 </tr> |
95 </tr> |
97 </table> |
96 </table> |
|
97 |
98 <h3>Static Methods</h3> |
98 <h3>Static Methods</h3> |
99 |
|
100 <table> |
99 <table> |
101 <tr><td>None</td></tr> |
100 <tr><td>None</td></tr> |
102 </table> |
101 </table> |
|
102 |
103 |
103 |
104 <a NAME="UnittestExecutor.__init__" ID="UnittestExecutor.__init__"></a> |
104 <a NAME="UnittestExecutor.__init__" ID="UnittestExecutor.__init__"></a> |
105 <h4>UnittestExecutor (Constructor)</h4> |
105 <h4>UnittestExecutor (Constructor)</h4> |
106 <b>UnittestExecutor</b>(<i>testWidget</i>) |
106 <b>UnittestExecutor</b>(<i>testWidget</i>) |
107 |
|
108 <p> |
107 <p> |
109 Constructor |
108 Constructor |
110 </p> |
109 </p> |
|
110 |
111 <dl> |
111 <dl> |
112 |
112 |
113 <dt><i>testWidget</i> (TestingWidget)</dt> |
113 <dt><i>testWidget</i> (TestingWidget)</dt> |
114 <dd> |
114 <dd> |
115 reference to the unit test widget |
115 reference to the unit test widget |
116 </dd> |
116 </dd> |
117 </dl> |
117 </dl> |
118 <a NAME="UnittestExecutor.__processData" ID="UnittestExecutor.__processData"></a> |
118 <a NAME="UnittestExecutor.__processData" ID="UnittestExecutor.__processData"></a> |
119 <h4>UnittestExecutor.__processData</h4> |
119 <h4>UnittestExecutor.__processData</h4> |
120 <b>__processData</b>(<i>data</i>) |
120 <b>__processData</b>(<i>data</i>) |
121 |
|
122 <p> |
121 <p> |
123 Private slot to process the received data. |
122 Private slot to process the received data. |
124 </p> |
123 </p> |
|
124 |
125 <dl> |
125 <dl> |
126 |
126 |
127 <dt><i>data</i> (dict)</dt> |
127 <dt><i>data</i> (dict)</dt> |
128 <dd> |
128 <dd> |
129 data object received |
129 data object received |
130 </dd> |
130 </dd> |
131 </dl> |
131 </dl> |
132 <a NAME="UnittestExecutor.createArguments" ID="UnittestExecutor.createArguments"></a> |
132 <a NAME="UnittestExecutor.createArguments" ID="UnittestExecutor.createArguments"></a> |
133 <h4>UnittestExecutor.createArguments</h4> |
133 <h4>UnittestExecutor.createArguments</h4> |
134 <b>createArguments</b>(<i>config</i>) |
134 <b>createArguments</b>(<i>config</i>) |
135 |
|
136 <p> |
135 <p> |
137 Public method to create the arguments needed to start the test process. |
136 Public method to create the arguments needed to start the test process. |
138 </p> |
137 </p> |
|
138 |
139 <dl> |
139 <dl> |
140 |
140 |
141 <dt><i>config</i> (TestConfig)</dt> |
141 <dt><i>config</i> (TestConfig)</dt> |
142 <dd> |
142 <dd> |
143 configuration for the test execution |
143 configuration for the test execution |
156 </dd> |
156 </dd> |
157 </dl> |
157 </dl> |
158 <a NAME="UnittestExecutor.discover" ID="UnittestExecutor.discover"></a> |
158 <a NAME="UnittestExecutor.discover" ID="UnittestExecutor.discover"></a> |
159 <h4>UnittestExecutor.discover</h4> |
159 <h4>UnittestExecutor.discover</h4> |
160 <b>discover</b>(<i>config, pythonpath</i>) |
160 <b>discover</b>(<i>config, pythonpath</i>) |
161 |
|
162 <p> |
161 <p> |
163 Public method to start the test discovery process. |
162 Public method to start the test discovery process. |
164 </p> |
163 </p> |
|
164 |
165 <dl> |
165 <dl> |
166 |
166 |
167 <dt><i>config</i> (TestConfig)</dt> |
167 <dt><i>config</i> (TestConfig)</dt> |
168 <dd> |
168 <dd> |
169 configuration for the test discovery |
169 configuration for the test discovery |
174 </dd> |
174 </dd> |
175 </dl> |
175 </dl> |
176 <a NAME="UnittestExecutor.finished" ID="UnittestExecutor.finished"></a> |
176 <a NAME="UnittestExecutor.finished" ID="UnittestExecutor.finished"></a> |
177 <h4>UnittestExecutor.finished</h4> |
177 <h4>UnittestExecutor.finished</h4> |
178 <b>finished</b>(<i></i>) |
178 <b>finished</b>(<i></i>) |
179 |
|
180 <p> |
179 <p> |
181 Public method handling the unit test process been finished. |
180 Public method handling the unit test process been finished. |
182 </p> |
181 </p> |
183 <p> |
182 <p> |
184 This method should read the results (if necessary) and emit the signal |
183 This method should read the results (if necessary) and emit the signal |
185 testFinished. |
184 testFinished. |
186 </p> |
185 </p> |
|
186 |
187 <a NAME="UnittestExecutor.getVersions" ID="UnittestExecutor.getVersions"></a> |
187 <a NAME="UnittestExecutor.getVersions" ID="UnittestExecutor.getVersions"></a> |
188 <h4>UnittestExecutor.getVersions</h4> |
188 <h4>UnittestExecutor.getVersions</h4> |
189 <b>getVersions</b>(<i>interpreter</i>) |
189 <b>getVersions</b>(<i>interpreter</i>) |
190 |
|
191 <p> |
190 <p> |
192 Public method to get the test framework version and version information |
191 Public method to get the test framework version and version information |
193 of its installed plugins. |
192 of its installed plugins. |
194 </p> |
193 </p> |
|
194 |
195 <dl> |
195 <dl> |
196 |
196 |
197 <dt><i>interpreter</i> (str)</dt> |
197 <dt><i>interpreter</i> (str)</dt> |
198 <dd> |
198 <dd> |
199 interpreter to be used for the test |
199 interpreter to be used for the test |
213 </dd> |
213 </dd> |
214 </dl> |
214 </dl> |
215 <a NAME="UnittestExecutor.hasCoverage" ID="UnittestExecutor.hasCoverage"></a> |
215 <a NAME="UnittestExecutor.hasCoverage" ID="UnittestExecutor.hasCoverage"></a> |
216 <h4>UnittestExecutor.hasCoverage</h4> |
216 <h4>UnittestExecutor.hasCoverage</h4> |
217 <b>hasCoverage</b>(<i>interpreter</i>) |
217 <b>hasCoverage</b>(<i>interpreter</i>) |
218 |
|
219 <p> |
218 <p> |
220 Public method to check, if the collection of coverage data is available. |
219 Public method to check, if the collection of coverage data is available. |
221 </p> |
220 </p> |
|
221 |
222 <dl> |
222 <dl> |
223 |
223 |
224 <dt><i>interpreter</i> (str)</dt> |
224 <dt><i>interpreter</i> (str)</dt> |
225 <dd> |
225 <dd> |
226 interpreter to be used for the test |
226 interpreter to be used for the test |
239 </dd> |
239 </dd> |
240 </dl> |
240 </dl> |
241 <a NAME="UnittestExecutor.start" ID="UnittestExecutor.start"></a> |
241 <a NAME="UnittestExecutor.start" ID="UnittestExecutor.start"></a> |
242 <h4>UnittestExecutor.start</h4> |
242 <h4>UnittestExecutor.start</h4> |
243 <b>start</b>(<i>config, pythonpath</i>) |
243 <b>start</b>(<i>config, pythonpath</i>) |
244 |
|
245 <p> |
244 <p> |
246 Public method to start the testing process. |
245 Public method to start the testing process. |
247 </p> |
246 </p> |
|
247 |
248 <dl> |
248 <dl> |
249 |
249 |
250 <dt><i>config</i> (TestConfig)</dt> |
250 <dt><i>config</i> (TestConfig)</dt> |
251 <dd> |
251 <dd> |
252 configuration for the test execution |
252 configuration for the test execution |
257 </dd> |
257 </dd> |
258 </dl> |
258 </dl> |
259 <a NAME="UnittestExecutor.startDebug" ID="UnittestExecutor.startDebug"></a> |
259 <a NAME="UnittestExecutor.startDebug" ID="UnittestExecutor.startDebug"></a> |
260 <h4>UnittestExecutor.startDebug</h4> |
260 <h4>UnittestExecutor.startDebug</h4> |
261 <b>startDebug</b>(<i>config, pythonpath, debugger</i>) |
261 <b>startDebug</b>(<i>config, pythonpath, debugger</i>) |
262 |
|
263 <p> |
262 <p> |
264 Public method to start the test run with debugger support. |
263 Public method to start the test run with debugger support. |
265 </p> |
264 </p> |
|
265 |
266 <dl> |
266 <dl> |
267 |
267 |
268 <dt><i>config</i> (TestConfig)</dt> |
268 <dt><i>config</i> (TestConfig)</dt> |
269 <dd> |
269 <dd> |
270 configuration for the test execution |
270 configuration for the test execution |
279 </dd> |
279 </dd> |
280 </dl> |
280 </dl> |
281 <a NAME="UnittestExecutor.supportsPatterns" ID="UnittestExecutor.supportsPatterns"></a> |
281 <a NAME="UnittestExecutor.supportsPatterns" ID="UnittestExecutor.supportsPatterns"></a> |
282 <h4>UnittestExecutor.supportsPatterns</h4> |
282 <h4>UnittestExecutor.supportsPatterns</h4> |
283 <b>supportsPatterns</b>(<i>interpreter</i>) |
283 <b>supportsPatterns</b>(<i>interpreter</i>) |
284 |
|
285 <p> |
284 <p> |
286 Public method to indicate the support for test filtering using test name |
285 Public method to indicate the support for test filtering using test name |
287 patterns or a test name pattern expression. |
286 patterns or a test name pattern expression. |
288 </p> |
287 </p> |
|
288 |
289 <dl> |
289 <dl> |
290 |
290 |
291 <dt><i>interpreter</i> (str)</dt> |
291 <dt><i>interpreter</i> (str)</dt> |
292 <dd> |
292 <dd> |
293 interpreter to be used for the test |
293 interpreter to be used for the test |