--- a/src/eric7/Documentation/Source/eric7.Testing.Interfaces.PytestRunner.html Fri Oct 27 14:07:03 2023 +0200 +++ b/src/eric7/Documentation/Source/eric7.Testing.Interfaces.PytestRunner.html Fri Oct 27 14:09:40 2023 +0200 @@ -89,7 +89,7 @@ </tr> <tr> <td><a href="#EricPlugin.pytest_report_header">pytest_report_header</a></td> -<td></td> +<td>Public method called by pytest before any reporting.</td> </tr> <tr> <td><a href="#EricPlugin.pytest_runtest_logfinish">pytest_runtest_logfinish</a></td> @@ -101,15 +101,15 @@ </tr> <tr> <td><a href="#EricPlugin.pytest_runtest_logstart">pytest_runtest_logstart</a></td> -<td></td> +<td>Public method called by pytest before running a test.</td> </tr> <tr> <td><a href="#EricPlugin.pytest_sessionfinish">pytest_sessionfinish</a></td> -<td></td> +<td>Public method called by pytest after the whole test run finished.</td> </tr> <tr> <td><a href="#EricPlugin.pytest_sessionstart">pytest_sessionstart</a></td> -<td></td> +<td>Public method called by pytest before performing collection and entering the run test loop.</td> </tr> </table> <h3>Static Methods</h3> @@ -171,6 +171,20 @@ <h4>EricPlugin.pytest_report_header</h4> <b>pytest_report_header</b>(<i>config, startdir</i>) +<p> + Public method called by pytest before any reporting. +</p> +<dl> + +<dt><i>config</i> (Config)</dt> +<dd> +reference to the configuration object +</dd> +<dt><i>startdir</i> (LocalPath)</dt> +<dd> +starting directory +</dd> +</dl> <a NAME="EricPlugin.pytest_runtest_logfinish" ID="EricPlugin.pytest_runtest_logfinish"></a> <h4>EricPlugin.pytest_runtest_logfinish</h4> <b>pytest_runtest_logfinish</b>(<i>nodeid, location</i>) @@ -209,14 +223,54 @@ <h4>EricPlugin.pytest_runtest_logstart</h4> <b>pytest_runtest_logstart</b>(<i>nodeid, location</i>) +<p> + Public method called by pytest before running a test. +</p> +<dl> + +<dt><i>nodeid</i> (str)</dt> +<dd> +node id of the test item +</dd> +<dt><i>location</i> (tuple of (str, int, str))</dt> +<dd> +tuple containing the file name, the line number and + the test name +</dd> +</dl> <a NAME="EricPlugin.pytest_sessionfinish" ID="EricPlugin.pytest_sessionfinish"></a> <h4>EricPlugin.pytest_sessionfinish</h4> <b>pytest_sessionfinish</b>(<i>session, exitstatus</i>) +<p> + Public method called by pytest after the whole test run finished. +</p> +<dl> + +<dt><i>session</i> (Session)</dt> +<dd> +reference to the session object +</dd> +<dt><i>exitstatus</i> (int or ExitCode)</dt> +<dd> +exit status +</dd> +</dl> <a NAME="EricPlugin.pytest_sessionstart" ID="EricPlugin.pytest_sessionstart"></a> <h4>EricPlugin.pytest_sessionstart</h4> <b>pytest_sessionstart</b>(<i>session</i>) +<p> + Public method called by pytest before performing collection and + entering the run test loop. +</p> +<dl> + +<dt><i>session</i> (Session)</dt> +<dd> +reference to the session object +</dd> +</dl> <div align="right"><a href="#top">Up</a></div> <hr /> <hr />