Updated source documentation. eric7

Wed, 25 Aug 2021 17:44:36 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 25 Aug 2021 17:44:36 +0200
branch
eric7
changeset 8545
9c9779b7142a
parent 8542
f8d3b4511358
child 8546
52454036c2b2

Updated source documentation.

docs/changelog file | annotate | diff | comparison | revisions
eric7/APIs/Python3/eric7.api file | annotate | diff | comparison | revisions
eric7/Documentation/Help/source.qch file | annotate | diff | comparison | revisions
eric7/Documentation/Help/source.qhp file | annotate | diff | comparison | revisions
eric7/Documentation/Source/eric7.DebugClients.Python.DCTestResult.html file | annotate | diff | comparison | revisions
eric7/Documentation/Source/eric7.PyUnit.UnittestDialog.html file | annotate | diff | comparison | revisions
--- a/docs/changelog	Wed Aug 25 17:33:29 2021 +0200
+++ b/docs/changelog	Wed Aug 25 17:44:36 2021 +0200
@@ -29,6 +29,8 @@
 - bug fixes
 - MicroPython
   -- extended the list of known CircuitPython and UF2 capable devices
+- Unit Test
+  -- added support for sub-tests
 
 Version 21.7:
 - bug fixes
--- a/eric7/APIs/Python3/eric7.api	Wed Aug 25 17:33:29 2021 +0200
+++ b/eric7/APIs/Python3/eric7.api	Wed Aug 25 17:44:36 2021 +0200
@@ -245,6 +245,7 @@
 eric7.DebugClients.Python.DCTestResult.DCTestResult.addExpectedFailure?4(test, err)
 eric7.DebugClients.Python.DCTestResult.DCTestResult.addFailure?4(test, err)
 eric7.DebugClients.Python.DCTestResult.DCTestResult.addSkip?4(test, reason)
+eric7.DebugClients.Python.DCTestResult.DCTestResult.addSubTest?4(test, subtest, err)
 eric7.DebugClients.Python.DCTestResult.DCTestResult.addUnexpectedSuccess?4(test)
 eric7.DebugClients.Python.DCTestResult.DCTestResult.startTest?4(test)
 eric7.DebugClients.Python.DCTestResult.DCTestResult.stopTest?4(test)
@@ -7627,6 +7628,7 @@
 eric7.PyUnit.UnittestDialog.QtTestResult.addExpectedFailure?4(test, err)
 eric7.PyUnit.UnittestDialog.QtTestResult.addFailure?4(test, err)
 eric7.PyUnit.UnittestDialog.QtTestResult.addSkip?4(test, reason)
+eric7.PyUnit.UnittestDialog.QtTestResult.addSubTest?4(test, subtest, err)
 eric7.PyUnit.UnittestDialog.QtTestResult.addUnexpectedSuccess?4(test)
 eric7.PyUnit.UnittestDialog.QtTestResult.startTest?4(test)
 eric7.PyUnit.UnittestDialog.QtTestResult.stopTest?4(test)
Binary file eric7/Documentation/Help/source.qch has changed
--- a/eric7/Documentation/Help/source.qhp	Wed Aug 25 17:33:29 2021 +0200
+++ b/eric7/Documentation/Help/source.qhp	Wed Aug 25 17:44:36 2021 +0200
@@ -3195,6 +3195,7 @@
       <keyword name="DCTestResult.addExpectedFailure" id="DCTestResult.addExpectedFailure" ref="eric7.DebugClients.Python.DCTestResult.html#DCTestResult.addExpectedFailure" />
       <keyword name="DCTestResult.addFailure" id="DCTestResult.addFailure" ref="eric7.DebugClients.Python.DCTestResult.html#DCTestResult.addFailure" />
       <keyword name="DCTestResult.addSkip" id="DCTestResult.addSkip" ref="eric7.DebugClients.Python.DCTestResult.html#DCTestResult.addSkip" />
+      <keyword name="DCTestResult.addSubTest" id="DCTestResult.addSubTest" ref="eric7.DebugClients.Python.DCTestResult.html#DCTestResult.addSubTest" />
       <keyword name="DCTestResult.addUnexpectedSuccess" id="DCTestResult.addUnexpectedSuccess" ref="eric7.DebugClients.Python.DCTestResult.html#DCTestResult.addUnexpectedSuccess" />
       <keyword name="DCTestResult.startTest" id="DCTestResult.startTest" ref="eric7.DebugClients.Python.DCTestResult.html#DCTestResult.startTest" />
       <keyword name="DCTestResult.stopTest" id="DCTestResult.stopTest" ref="eric7.DebugClients.Python.DCTestResult.html#DCTestResult.stopTest" />
@@ -12551,6 +12552,7 @@
       <keyword name="QtTestResult.addExpectedFailure" id="QtTestResult.addExpectedFailure" ref="eric7.PyUnit.UnittestDialog.html#QtTestResult.addExpectedFailure" />
       <keyword name="QtTestResult.addFailure" id="QtTestResult.addFailure" ref="eric7.PyUnit.UnittestDialog.html#QtTestResult.addFailure" />
       <keyword name="QtTestResult.addSkip" id="QtTestResult.addSkip" ref="eric7.PyUnit.UnittestDialog.html#QtTestResult.addSkip" />
+      <keyword name="QtTestResult.addSubTest" id="QtTestResult.addSubTest" ref="eric7.PyUnit.UnittestDialog.html#QtTestResult.addSubTest" />
       <keyword name="QtTestResult.addUnexpectedSuccess" id="QtTestResult.addUnexpectedSuccess" ref="eric7.PyUnit.UnittestDialog.html#QtTestResult.addUnexpectedSuccess" />
       <keyword name="QtTestResult.startTest" id="QtTestResult.startTest" ref="eric7.PyUnit.UnittestDialog.html#QtTestResult.startTest" />
       <keyword name="QtTestResult.stopTest" id="QtTestResult.stopTest" ref="eric7.PyUnit.UnittestDialog.html#QtTestResult.stopTest" />
--- a/eric7/Documentation/Source/eric7.DebugClients.Python.DCTestResult.html	Wed Aug 25 17:33:29 2021 +0200
+++ b/eric7/Documentation/Source/eric7.DebugClients.Python.DCTestResult.html	Wed Aug 25 17:44:36 2021 +0200
@@ -92,6 +92,10 @@
 <td>Public method called if a test was skipped.</td>
 </tr>
 <tr>
+<td><a href="#DCTestResult.addSubTest">addSubTest</a></td>
+<td>Public method called for each subtest to record its result.</td>
+</tr>
+<tr>
 <td><a href="#DCTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td>
 <td>Public method called if a test succeeded expectedly.</td>
 </tr>
@@ -200,6 +204,28 @@
 reason for skipping the test (string)
 </dd>
 </dl>
+<a NAME="DCTestResult.addSubTest" ID="DCTestResult.addSubTest"></a>
+<h4>DCTestResult.addSubTest</h4>
+<b>addSubTest</b>(<i>test, subtest, err</i>)
+
+<p>
+        Public method called for each subtest to record its result.
+</p>
+<dl>
+
+<dt><i>test</i></dt>
+<dd>
+reference to the test object
+</dd>
+<dt><i>subtest</i></dt>
+<dd>
+reference to the subtest object
+</dd>
+<dt><i>err</i></dt>
+<dd>
+error traceback
+</dd>
+</dl>
 <a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a>
 <h4>DCTestResult.addUnexpectedSuccess</h4>
 <b>addUnexpectedSuccess</b>(<i>test</i>)
--- a/eric7/Documentation/Source/eric7.PyUnit.UnittestDialog.html	Wed Aug 25 17:33:29 2021 +0200
+++ b/eric7/Documentation/Source/eric7.PyUnit.UnittestDialog.html	Wed Aug 25 17:44:36 2021 +0200
@@ -100,6 +100,10 @@
 <td>Public method called if a test was skipped.</td>
 </tr>
 <tr>
+<td><a href="#QtTestResult.addSubTest">addSubTest</a></td>
+<td>Public method called for each subtest to record its result.</td>
+</tr>
+<tr>
 <td><a href="#QtTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td>
 <td>Public method called if a test succeeded expectedly.</td>
 </tr>
@@ -208,6 +212,28 @@
 reason for skipping the test (string)
 </dd>
 </dl>
+<a NAME="QtTestResult.addSubTest" ID="QtTestResult.addSubTest"></a>
+<h4>QtTestResult.addSubTest</h4>
+<b>addSubTest</b>(<i>test, subtest, err</i>)
+
+<p>
+        Public method called for each subtest to record its result.
+</p>
+<dl>
+
+<dt><i>test</i></dt>
+<dd>
+reference to the test object
+</dd>
+<dt><i>subtest</i></dt>
+<dd>
+reference to the subtest object
+</dd>
+<dt><i>err</i></dt>
+<dd>
+error traceback
+</dd>
+</dl>
 <a NAME="QtTestResult.addUnexpectedSuccess" ID="QtTestResult.addUnexpectedSuccess"></a>
 <h4>QtTestResult.addUnexpectedSuccess</h4>
 <b>addUnexpectedSuccess</b>(<i>test</i>)

eric ide

mercurial