eric6/Documentation/Source/eric6.DebugClients.Python.DCTestResult.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7960
e8fc383322f7
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.DebugClients.Python.DCTestResult</h1> 23 <h1>eric6.DebugClients.Python.DCTestResult</h1>
24
23 <p> 25 <p>
24 Module implementing a TestResult derivative for the eric6 debugger. 26 Module implementing a TestResult derivative for the eric6 debugger.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#DCTestResult">DCTestResult</a></td> 38 <td><a href="#DCTestResult">DCTestResult</a></td>
34 <td>A TestResult derivative to work with eric6's debug client.</td> 39 <td>A TestResult derivative to work with eric6's debug client.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
38 <table> 43
39 <tr><td>None</td></tr> 44 <table>
40 </table> 45 <tr><td>None</td></tr>
41 <hr /><hr /> 46 </table>
47 <hr />
48 <hr />
42 <a NAME="DCTestResult" ID="DCTestResult"></a> 49 <a NAME="DCTestResult" ID="DCTestResult"></a>
43 <h2>DCTestResult</h2> 50 <h2>DCTestResult</h2>
51
44 <p> 52 <p>
45 A TestResult derivative to work with eric6's debug client. 53 A TestResult derivative to work with eric6's debug client.
46 </p><p> 54 </p>
55 <p>
47 For more details see unittest.py of the standard python distribution. 56 For more details see unittest.py of the standard python distribution.
48 </p> 57 </p>
49 <h3>Derived from</h3> 58 <h3>Derived from</h3>
50 TestResult 59 TestResult
51 <h3>Class Attributes</h3> 60 <h3>Class Attributes</h3>
61
52 <table> 62 <table>
53 <tr><td>None</td></tr> 63 <tr><td>None</td></tr>
54 </table> 64 </table>
55 <h3>Class Methods</h3> 65 <h3>Class Methods</h3>
66
56 <table> 67 <table>
57 <tr><td>None</td></tr> 68 <tr><td>None</td></tr>
58 </table> 69 </table>
59 <h3>Methods</h3> 70 <h3>Methods</h3>
60 <table> 71
72 <table>
73
61 <tr> 74 <tr>
62 <td><a href="#DCTestResult.__init__">DCTestResult</a></td> 75 <td><a href="#DCTestResult.__init__">DCTestResult</a></td>
63 <td>Constructor</td> 76 <td>Constructor</td>
64 </tr><tr> 77 </tr>
78 <tr>
65 <td><a href="#DCTestResult.addError">addError</a></td> 79 <td><a href="#DCTestResult.addError">addError</a></td>
66 <td>Public method called if a test errored.</td> 80 <td>Public method called if a test errored.</td>
67 </tr><tr> 81 </tr>
82 <tr>
68 <td><a href="#DCTestResult.addExpectedFailure">addExpectedFailure</a></td> 83 <td><a href="#DCTestResult.addExpectedFailure">addExpectedFailure</a></td>
69 <td>Public method called if a test failed expected.</td> 84 <td>Public method called if a test failed expected.</td>
70 </tr><tr> 85 </tr>
86 <tr>
71 <td><a href="#DCTestResult.addFailure">addFailure</a></td> 87 <td><a href="#DCTestResult.addFailure">addFailure</a></td>
72 <td>Public method called if a test failed.</td> 88 <td>Public method called if a test failed.</td>
73 </tr><tr> 89 </tr>
90 <tr>
74 <td><a href="#DCTestResult.addSkip">addSkip</a></td> 91 <td><a href="#DCTestResult.addSkip">addSkip</a></td>
75 <td>Public method called if a test was skipped.</td> 92 <td>Public method called if a test was skipped.</td>
76 </tr><tr> 93 </tr>
94 <tr>
77 <td><a href="#DCTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td> 95 <td><a href="#DCTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td>
78 <td>Public method called if a test succeeded expectedly.</td> 96 <td>Public method called if a test succeeded expectedly.</td>
79 </tr><tr> 97 </tr>
98 <tr>
80 <td><a href="#DCTestResult.startTest">startTest</a></td> 99 <td><a href="#DCTestResult.startTest">startTest</a></td>
81 <td>Public method called at the start of a test.</td> 100 <td>Public method called at the start of a test.</td>
82 </tr><tr> 101 </tr>
102 <tr>
83 <td><a href="#DCTestResult.stopTest">stopTest</a></td> 103 <td><a href="#DCTestResult.stopTest">stopTest</a></td>
84 <td>Public method called at the end of a test.</td> 104 <td>Public method called at the end of a test.</td>
85 </tr> 105 </tr>
86 </table> 106 </table>
87 <h3>Static Methods</h3> 107 <h3>Static Methods</h3>
88 <table> 108
89 <tr><td>None</td></tr> 109 <table>
90 </table> 110 <tr><td>None</td></tr>
111 </table>
112
91 <a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a> 113 <a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a>
92 <h4>DCTestResult (Constructor)</h4> 114 <h4>DCTestResult (Constructor)</h4>
93 <b>DCTestResult</b>(<i>dbgClient, failfast</i>) 115 <b>DCTestResult</b>(<i>dbgClient, failfast</i>)
116
94 <p> 117 <p>
95 Constructor 118 Constructor
96 </p><dl> 119 </p>
120 <dl>
121
97 <dt><i>dbgClient</i> (DebugClientBase)</dt> 122 <dt><i>dbgClient</i> (DebugClientBase)</dt>
98 <dd> 123 <dd>
99 reference to the debug client 124 reference to the debug client
100 </dd><dt><i>failfast</i> (bool)</dt> 125 </dd>
126 <dt><i>failfast</i> (bool)</dt>
101 <dd> 127 <dd>
102 flag indicating to stop at the first error 128 flag indicating to stop at the first error
103 </dd> 129 </dd>
104 </dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a> 130 </dl>
131 <a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a>
105 <h4>DCTestResult.addError</h4> 132 <h4>DCTestResult.addError</h4>
106 <b>addError</b>(<i>test, err</i>) 133 <b>addError</b>(<i>test, err</i>)
134
107 <p> 135 <p>
108 Public method called if a test errored. 136 Public method called if a test errored.
109 </p><dl> 137 </p>
110 <dt><i>test</i></dt> 138 <dl>
111 <dd> 139
112 Reference to the test object 140 <dt><i>test</i></dt>
113 </dd><dt><i>err</i></dt> 141 <dd>
142 Reference to the test object
143 </dd>
144 <dt><i>err</i></dt>
114 <dd> 145 <dd>
115 The error traceback 146 The error traceback
116 </dd> 147 </dd>
117 </dl><a NAME="DCTestResult.addExpectedFailure" ID="DCTestResult.addExpectedFailure"></a> 148 </dl>
149 <a NAME="DCTestResult.addExpectedFailure" ID="DCTestResult.addExpectedFailure"></a>
118 <h4>DCTestResult.addExpectedFailure</h4> 150 <h4>DCTestResult.addExpectedFailure</h4>
119 <b>addExpectedFailure</b>(<i>test, err</i>) 151 <b>addExpectedFailure</b>(<i>test, err</i>)
152
120 <p> 153 <p>
121 Public method called if a test failed expected. 154 Public method called if a test failed expected.
122 </p><dl> 155 </p>
156 <dl>
157
123 <dt><i>test</i></dt> 158 <dt><i>test</i></dt>
124 <dd> 159 <dd>
125 reference to the test object 160 reference to the test object
126 </dd><dt><i>err</i></dt> 161 </dd>
162 <dt><i>err</i></dt>
127 <dd> 163 <dd>
128 error traceback 164 error traceback
129 </dd> 165 </dd>
130 </dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a> 166 </dl>
167 <a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a>
131 <h4>DCTestResult.addFailure</h4> 168 <h4>DCTestResult.addFailure</h4>
132 <b>addFailure</b>(<i>test, err</i>) 169 <b>addFailure</b>(<i>test, err</i>)
170
133 <p> 171 <p>
134 Public method called if a test failed. 172 Public method called if a test failed.
135 </p><dl> 173 </p>
136 <dt><i>test</i></dt> 174 <dl>
137 <dd> 175
138 Reference to the test object 176 <dt><i>test</i></dt>
139 </dd><dt><i>err</i></dt> 177 <dd>
178 Reference to the test object
179 </dd>
180 <dt><i>err</i></dt>
140 <dd> 181 <dd>
141 The error traceback 182 The error traceback
142 </dd> 183 </dd>
143 </dl><a NAME="DCTestResult.addSkip" ID="DCTestResult.addSkip"></a> 184 </dl>
185 <a NAME="DCTestResult.addSkip" ID="DCTestResult.addSkip"></a>
144 <h4>DCTestResult.addSkip</h4> 186 <h4>DCTestResult.addSkip</h4>
145 <b>addSkip</b>(<i>test, reason</i>) 187 <b>addSkip</b>(<i>test, reason</i>)
188
146 <p> 189 <p>
147 Public method called if a test was skipped. 190 Public method called if a test was skipped.
148 </p><dl> 191 </p>
192 <dl>
193
149 <dt><i>test</i></dt> 194 <dt><i>test</i></dt>
150 <dd> 195 <dd>
151 reference to the test object 196 reference to the test object
152 </dd><dt><i>reason</i></dt> 197 </dd>
198 <dt><i>reason</i></dt>
153 <dd> 199 <dd>
154 reason for skipping the test (string) 200 reason for skipping the test (string)
155 </dd> 201 </dd>
156 </dl><a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a> 202 </dl>
203 <a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a>
157 <h4>DCTestResult.addUnexpectedSuccess</h4> 204 <h4>DCTestResult.addUnexpectedSuccess</h4>
158 <b>addUnexpectedSuccess</b>(<i>test</i>) 205 <b>addUnexpectedSuccess</b>(<i>test</i>)
206
159 <p> 207 <p>
160 Public method called if a test succeeded expectedly. 208 Public method called if a test succeeded expectedly.
161 </p><dl> 209 </p>
210 <dl>
211
162 <dt><i>test</i></dt> 212 <dt><i>test</i></dt>
163 <dd> 213 <dd>
164 reference to the test object 214 reference to the test object
165 </dd> 215 </dd>
166 </dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a> 216 </dl>
217 <a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a>
167 <h4>DCTestResult.startTest</h4> 218 <h4>DCTestResult.startTest</h4>
168 <b>startTest</b>(<i>test</i>) 219 <b>startTest</b>(<i>test</i>)
220
169 <p> 221 <p>
170 Public method called at the start of a test. 222 Public method called at the start of a test.
171 </p><dl> 223 </p>
172 <dt><i>test</i></dt> 224 <dl>
173 <dd> 225
174 Reference to the test object 226 <dt><i>test</i></dt>
175 </dd> 227 <dd>
176 </dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a> 228 Reference to the test object
229 </dd>
230 </dl>
231 <a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a>
177 <h4>DCTestResult.stopTest</h4> 232 <h4>DCTestResult.stopTest</h4>
178 <b>stopTest</b>(<i>test</i>) 233 <b>stopTest</b>(<i>test</i>)
234
179 <p> 235 <p>
180 Public method called at the end of a test. 236 Public method called at the end of a test.
181 </p><dl> 237 </p>
238 <dl>
239
182 <dt><i>test</i></dt> 240 <dt><i>test</i></dt>
183 <dd> 241 <dd>
184 Reference to the test object 242 Reference to the test object
185 </dd> 243 </dd>
186 </dl> 244 </dl>

eric ide

mercurial