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

changeset 3673
e26d7d0c1088
equal deleted inserted replaced
3670:f0cb7579c0b4 3673:e26d7d0c1088
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>parent</i>)
94 <p>
95 Constructor
96 </p><dl>
97 <dt><i>parent</i></dt>
98 <dd>
99 The parent widget.
100 </dd>
101 </dl><a NAME="DCTestResult.addError" ID="DCTestResult.addError"></a>
102 <h4>DCTestResult.addError</h4>
103 <b>addError</b>(<i>test, err</i>)
104 <p>
105 Public method called if a test errored.
106 </p><dl>
107 <dt><i>test</i></dt>
108 <dd>
109 Reference to the test object
110 </dd><dt><i>err</i></dt>
111 <dd>
112 The error traceback
113 </dd>
114 </dl><a NAME="DCTestResult.addExpectedFailure" ID="DCTestResult.addExpectedFailure"></a>
115 <h4>DCTestResult.addExpectedFailure</h4>
116 <b>addExpectedFailure</b>(<i>test, err</i>)
117 <p>
118 Public method called if a test failed expected.
119 </p><dl>
120 <dt><i>test</i></dt>
121 <dd>
122 reference to the test object
123 </dd><dt><i>err</i></dt>
124 <dd>
125 error traceback
126 </dd>
127 </dl><a NAME="DCTestResult.addFailure" ID="DCTestResult.addFailure"></a>
128 <h4>DCTestResult.addFailure</h4>
129 <b>addFailure</b>(<i>test, err</i>)
130 <p>
131 Public method called if a test failed.
132 </p><dl>
133 <dt><i>test</i></dt>
134 <dd>
135 Reference to the test object
136 </dd><dt><i>err</i></dt>
137 <dd>
138 The error traceback
139 </dd>
140 </dl><a NAME="DCTestResult.addSkip" ID="DCTestResult.addSkip"></a>
141 <h4>DCTestResult.addSkip</h4>
142 <b>addSkip</b>(<i>test, reason</i>)
143 <p>
144 Public method called if a test was skipped.
145 </p><dl>
146 <dt><i>test</i></dt>
147 <dd>
148 reference to the test object
149 </dd><dt><i>reason</i></dt>
150 <dd>
151 reason for skipping the test (string)
152 </dd>
153 </dl><a NAME="DCTestResult.addUnexpectedSuccess" ID="DCTestResult.addUnexpectedSuccess"></a>
154 <h4>DCTestResult.addUnexpectedSuccess</h4>
155 <b>addUnexpectedSuccess</b>(<i>test</i>)
156 <p>
157 Public method called if a test succeeded expectedly.
158 </p><dl>
159 <dt><i>test</i></dt>
160 <dd>
161 reference to the test object
162 </dd>
163 </dl><a NAME="DCTestResult.startTest" ID="DCTestResult.startTest"></a>
164 <h4>DCTestResult.startTest</h4>
165 <b>startTest</b>(<i>test</i>)
166 <p>
167 Public method called at the start of a test.
168 </p><dl>
169 <dt><i>test</i></dt>
170 <dd>
171 Reference to the test object
172 </dd>
173 </dl><a NAME="DCTestResult.stopTest" ID="DCTestResult.stopTest"></a>
174 <h4>DCTestResult.stopTest</h4>
175 <b>stopTest</b>(<i>test</i>)
176 <p>
177 Public method called at the end of a test.
178 </p><dl>
179 <dt><i>test</i></dt>
180 <dd>
181 Reference to the test object
182 </dd>
183 </dl>
184 <div align="right"><a href="#top">Up</a></div>
185 <hr />
186 </body></html>

eric ide

mercurial