|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.DebugClients.Python3.DCTestResult</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.DebugClients.Python3.DCTestResult</h1> |
|
12 <p> |
|
13 Module implementing a TestResult derivative for the eric5 debugger. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#DCTestResult">DCTestResult</a></td> |
|
23 <td>A TestResult derivative to work with eric5's debug client.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="DCTestResult" ID="DCTestResult"></a> |
|
32 <h2>DCTestResult</h2> |
|
33 <p> |
|
34 A TestResult derivative to work with eric5's debug client. |
|
35 </p><p> |
|
36 For more details see unittest.py of the standard python distribution. |
|
37 </p> |
|
38 <h3>Derived from</h3> |
|
39 TestResult |
|
40 <h3>Class Attributes</h3> |
|
41 <table> |
|
42 <tr><td>None</td></tr> |
|
43 </table> |
|
44 <h3>Methods</h3> |
|
45 <table> |
|
46 <tr> |
|
47 <td><a href="#DCTestResult.__init__">DCTestResult</a></td> |
|
48 <td>Constructor</td> |
|
49 </tr><tr> |
|
50 <td><a href="#DCTestResult.addError">addError</a></td> |
|
51 <td>Method called if a test errored.</td> |
|
52 </tr><tr> |
|
53 <td><a href="#DCTestResult.addFailure">addFailure</a></td> |
|
54 <td>Method called if a test failed.</td> |
|
55 </tr><tr> |
|
56 <td><a href="#DCTestResult.startTest">startTest</a></td> |
|
57 <td>Method called at the start of a test.</td> |
|
58 </tr><tr> |
|
59 <td><a href="#DCTestResult.stopTest">stopTest</a></td> |
|
60 <td>Method called at the end of a test.</td> |
|
61 </tr> |
|
62 </table> |
|
63 <a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a> |
|
64 <h4>DCTestResult (Constructor)</h4> |
|
65 <b>DCTestResult</b>(<i>parent</i>) |
|
66 <p> |
|
67 Constructor |
|
68 </p><dl> |
|
69 <dt><i>parent</i></dt> |
|
70 <dd> |
|
71 The parent widget. |
|
72 </dd> |
|
73 </dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a> |
|
74 <h4>DCTestResult.addError</h4> |
|
75 <b>addError</b>(<i>test, err</i>) |
|
76 <p> |
|
77 Method called if a test errored. |
|
78 </p><dl> |
|
79 <dt><i>test</i></dt> |
|
80 <dd> |
|
81 Reference to the test object |
|
82 </dd><dt><i>err</i></dt> |
|
83 <dd> |
|
84 The error traceback |
|
85 </dd> |
|
86 </dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a> |
|
87 <h4>DCTestResult.addFailure</h4> |
|
88 <b>addFailure</b>(<i>test, err</i>) |
|
89 <p> |
|
90 Method called if a test failed. |
|
91 </p><dl> |
|
92 <dt><i>test</i></dt> |
|
93 <dd> |
|
94 Reference to the test object |
|
95 </dd><dt><i>err</i></dt> |
|
96 <dd> |
|
97 The error traceback |
|
98 </dd> |
|
99 </dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a> |
|
100 <h4>DCTestResult.startTest</h4> |
|
101 <b>startTest</b>(<i>test</i>) |
|
102 <p> |
|
103 Method called at the start of a test. |
|
104 </p><dl> |
|
105 <dt><i>test</i></dt> |
|
106 <dd> |
|
107 Reference to the test object |
|
108 </dd> |
|
109 </dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a> |
|
110 <h4>DCTestResult.stopTest</h4> |
|
111 <b>stopTest</b>(<i>test</i>) |
|
112 <p> |
|
113 Method called at the end of a test. |
|
114 </p><dl> |
|
115 <dt><i>test</i></dt> |
|
116 <dd> |
|
117 Reference to the test object |
|
118 </dd> |
|
119 </dl> |
|
120 <div align="right"><a href="#top">Up</a></div> |
|
121 <hr /> |
|
122 </body></html> |