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

changeset 6942
2602857055c5
parent 6904
3f35037a08d4
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.DebugClients.Python.DCTestResult</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.DebugClients.Python.DCTestResult</h1>
23 <p>
24 Module implementing a TestResult derivative for the eric6 debugger.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#DCTestResult">DCTestResult</a></td>
34 <td>A TestResult derivative to work with eric6's debug client.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="DCTestResult" ID="DCTestResult"></a>
43 <h2>DCTestResult</h2>
44 <p>
45 A TestResult derivative to work with eric6's debug client.
46 </p><p>
47 For more details see unittest.py of the standard python distribution.
48 </p>
49 <h3>Derived from</h3>
50 TestResult
51 <h3>Class Attributes</h3>
52 <table>
53 <tr><td>None</td></tr>
54 </table>
55 <h3>Class Methods</h3>
56 <table>
57 <tr><td>None</td></tr>
58 </table>
59 <h3>Methods</h3>
60 <table>
61 <tr>
62 <td><a href="#DCTestResult.__init__">DCTestResult</a></td>
63 <td>Constructor</td>
64 </tr><tr>
65 <td><a href="#DCTestResult.addError">addError</a></td>
66 <td>Public method called if a test errored.</td>
67 </tr><tr>
68 <td><a href="#DCTestResult.addExpectedFailure">addExpectedFailure</a></td>
69 <td>Public method called if a test failed expected.</td>
70 </tr><tr>
71 <td><a href="#DCTestResult.addFailure">addFailure</a></td>
72 <td>Public method called if a test failed.</td>
73 </tr><tr>
74 <td><a href="#DCTestResult.addSkip">addSkip</a></td>
75 <td>Public method called if a test was skipped.</td>
76 </tr><tr>
77 <td><a href="#DCTestResult.addUnexpectedSuccess">addUnexpectedSuccess</a></td>
78 <td>Public method called if a test succeeded expectedly.</td>
79 </tr><tr>
80 <td><a href="#DCTestResult.startTest">startTest</a></td>
81 <td>Public method called at the start of a test.</td>
82 </tr><tr>
83 <td><a href="#DCTestResult.stopTest">stopTest</a></td>
84 <td>Public method called at the end of a test.</td>
85 </tr>
86 </table>
87 <h3>Static Methods</h3>
88 <table>
89 <tr><td>None</td></tr>
90 </table>
91 <a NAME="DCTestResult.__init__" ID="DCTestResult.__init__"></a>
92 <h4>DCTestResult (Constructor)</h4>
93 <b>DCTestResult</b>(<i>dbgClient, failfast</i>)
94 <p>
95 Constructor
96 </p><dl>
97 <dt><i>dbgClient</i> (DebugClientBase)</dt>
98 <dd>
99 reference to the debug client
100 </dd><dt><i>failfast</i> (bool)</dt>
101 <dd>
102 flag indicating to stop at the first error
103 </dd>
104 </dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a>
105 <h4>DCTestResult.addError</h4>
106 <b>addError</b>(<i>test, err</i>)
107 <p>
108 Public method called if a test errored.
109 </p><dl>
110 <dt><i>test</i></dt>
111 <dd>
112 Reference to the test object
113 </dd><dt><i>err</i></dt>
114 <dd>
115 The error traceback
116 </dd>
117 </dl><a NAME="DCTestResult.addExpectedFailure" ID="DCTestResult.addExpectedFailure"></a>
118 <h4>DCTestResult.addExpectedFailure</h4>
119 <b>addExpectedFailure</b>(<i>test, err</i>)
120 <p>
121 Public method called if a test failed expected.
122 </p><dl>
123 <dt><i>test</i></dt>
124 <dd>
125 reference to the test object
126 </dd><dt><i>err</i></dt>
127 <dd>
128 error traceback
129 </dd>
130 </dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a>
131 <h4>DCTestResult.addFailure</h4>
132 <b>addFailure</b>(<i>test, err</i>)
133 <p>
134 Public method called if a test failed.
135 </p><dl>
136 <dt><i>test</i></dt>
137 <dd>
138 Reference to the test object
139 </dd><dt><i>err</i></dt>
140 <dd>
141 The error traceback
142 </dd>
143 </dl><a NAME="DCTestResult.addSkip" ID="DCTestResult.addSkip"></a>
144 <h4>DCTestResult.addSkip</h4>
145 <b>addSkip</b>(<i>test, reason</i>)
146 <p>
147 Public method called if a test was skipped.
148 </p><dl>
149 <dt><i>test</i></dt>
150 <dd>
151 reference to the test object
152 </dd><dt><i>reason</i></dt>
153 <dd>
154 reason for skipping the test (string)
155 </dd>
156 </dl><a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a>
157 <h4>DCTestResult.addUnexpectedSuccess</h4>
158 <b>addUnexpectedSuccess</b>(<i>test</i>)
159 <p>
160 Public method called if a test succeeded expectedly.
161 </p><dl>
162 <dt><i>test</i></dt>
163 <dd>
164 reference to the test object
165 </dd>
166 </dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a>
167 <h4>DCTestResult.startTest</h4>
168 <b>startTest</b>(<i>test</i>)
169 <p>
170 Public method called at the start of a test.
171 </p><dl>
172 <dt><i>test</i></dt>
173 <dd>
174 Reference to the test object
175 </dd>
176 </dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a>
177 <h4>DCTestResult.stopTest</h4>
178 <b>stopTest</b>(<i>test</i>)
179 <p>
180 Public method called at the end of a test.
181 </p><dl>
182 <dt><i>test</i></dt>
183 <dd>
184 Reference to the test object
185 </dd>
186 </dl>
187 <div align="right"><a href="#top">Up</a></div>
188 <hr />
189 </body></html>

eric ide

mercurial