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

branch
eric7
changeset 10684
58c7f23ae1cb
parent 10479
856476537696
child 11012
8685d10eca0f
equal deleted inserted replaced
10683:779cda568acb 10684:58c7f23ae1cb
165 reference to the collected test item 165 reference to the collected test item
166 </dd> 166 </dd>
167 </dl> 167 </dl>
168 <a NAME="EricPlugin.pytest_report_header" ID="EricPlugin.pytest_report_header"></a> 168 <a NAME="EricPlugin.pytest_report_header" ID="EricPlugin.pytest_report_header"></a>
169 <h4>EricPlugin.pytest_report_header</h4> 169 <h4>EricPlugin.pytest_report_header</h4>
170 <b>pytest_report_header</b>(<i>config, startdir</i>) 170 <b>pytest_report_header</b>(<i>config, _startdir</i>)
171 <p> 171 <p>
172 Public method called by pytest before any reporting. 172 Public method called by pytest before any reporting.
173 </p> 173 </p>
174 174
175 <dl> 175 <dl>
176 176
177 <dt><i>config</i> (Config)</dt> 177 <dt><i>config</i> (Config)</dt>
178 <dd> 178 <dd>
179 reference to the configuration object 179 reference to the configuration object
180 </dd> 180 </dd>
181 <dt><i>startdir</i> (LocalPath)</dt> 181 <dt><i>_startdir</i> (LocalPath)</dt>
182 <dd> 182 <dd>
183 starting directory 183 starting directory (unused)
184 </dd> 184 </dd>
185 </dl> 185 </dl>
186 <a NAME="EricPlugin.pytest_runtest_logfinish" ID="EricPlugin.pytest_runtest_logfinish"></a> 186 <a NAME="EricPlugin.pytest_runtest_logfinish" ID="EricPlugin.pytest_runtest_logfinish"></a>
187 <h4>EricPlugin.pytest_runtest_logfinish</h4> 187 <h4>EricPlugin.pytest_runtest_logfinish</h4>
188 <b>pytest_runtest_logfinish</b>(<i>nodeid, location</i>) 188 <b>pytest_runtest_logfinish</b>(<i>nodeid, location</i>)
217 reference to the test report object 217 reference to the test report object
218 </dd> 218 </dd>
219 </dl> 219 </dl>
220 <a NAME="EricPlugin.pytest_runtest_logstart" ID="EricPlugin.pytest_runtest_logstart"></a> 220 <a NAME="EricPlugin.pytest_runtest_logstart" ID="EricPlugin.pytest_runtest_logstart"></a>
221 <h4>EricPlugin.pytest_runtest_logstart</h4> 221 <h4>EricPlugin.pytest_runtest_logstart</h4>
222 <b>pytest_runtest_logstart</b>(<i>nodeid, location</i>) 222 <b>pytest_runtest_logstart</b>(<i>nodeid, _location</i>)
223 <p> 223 <p>
224 Public method called by pytest before running a test. 224 Public method called by pytest before running a test.
225 </p> 225 </p>
226 226
227 <dl> 227 <dl>
228 228
229 <dt><i>nodeid</i> (str)</dt> 229 <dt><i>nodeid</i> (str)</dt>
230 <dd> 230 <dd>
231 node id of the test item 231 node id of the test item
232 </dd> 232 </dd>
233 <dt><i>location</i> (tuple of (str, int, str))</dt> 233 <dt><i>_location</i> (tuple of (str, int, str))</dt>
234 <dd> 234 <dd>
235 tuple containing the file name, the line number and 235 tuple containing the file name, the line number and
236 the test name 236 the test name (unused)
237 </dd> 237 </dd>
238 </dl> 238 </dl>
239 <a NAME="EricPlugin.pytest_sessionfinish" ID="EricPlugin.pytest_sessionfinish"></a> 239 <a NAME="EricPlugin.pytest_sessionfinish" ID="EricPlugin.pytest_sessionfinish"></a>
240 <h4>EricPlugin.pytest_sessionfinish</h4> 240 <h4>EricPlugin.pytest_sessionfinish</h4>
241 <b>pytest_sessionfinish</b>(<i>session, exitstatus</i>) 241 <b>pytest_sessionfinish</b>(<i>_session, _exitstatus</i>)
242 <p> 242 <p>
243 Public method called by pytest after the whole test run finished. 243 Public method called by pytest after the whole test run finished.
244 </p> 244 </p>
245 245
246 <dl> 246 <dl>
247 247
248 <dt><i>session</i> (Session)</dt> 248 <dt><i>_session</i> (Session)</dt>
249 <dd> 249 <dd>
250 reference to the session object 250 reference to the session object (unused)
251 </dd> 251 </dd>
252 <dt><i>exitstatus</i> (int or ExitCode)</dt> 252 <dt><i>_exitstatus</i> (int or ExitCode)</dt>
253 <dd> 253 <dd>
254 exit status 254 exit status (unused)
255 </dd> 255 </dd>
256 </dl> 256 </dl>
257 <a NAME="EricPlugin.pytest_sessionstart" ID="EricPlugin.pytest_sessionstart"></a> 257 <a NAME="EricPlugin.pytest_sessionstart" ID="EricPlugin.pytest_sessionstart"></a>
258 <h4>EricPlugin.pytest_sessionstart</h4> 258 <h4>EricPlugin.pytest_sessionstart</h4>
259 <b>pytest_sessionstart</b>(<i>session</i>) 259 <b>pytest_sessionstart</b>(<i>_session</i>)
260 <p> 260 <p>
261 Public method called by pytest before performing collection and 261 Public method called by pytest before performing collection and
262 entering the run test loop. 262 entering the run test loop.
263 </p> 263 </p>
264 264
265 <dl> 265 <dl>
266 266
267 <dt><i>session</i> (Session)</dt> 267 <dt><i>_session</i> (Session)</dt>
268 <dd> 268 <dd>
269 reference to the session object 269 reference to the session object (unused)
270 </dd> 270 </dd>
271 </dl> 271 </dl>
272 <div align="right"><a href="#top">Up</a></div> 272 <div align="right"><a href="#top">Up</a></div>
273 <hr /> 273 <hr />
274 <hr /> 274 <hr />

eric ide

mercurial