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