15 """ |
15 """ |
16 A TestResult derivative to work with eric6's debug client. |
16 A TestResult derivative to work with eric6's debug client. |
17 |
17 |
18 For more details see unittest.py of the standard python distribution. |
18 For more details see unittest.py of the standard python distribution. |
19 """ |
19 """ |
20 def __init__(self, dbgClient): |
20 def __init__(self, dbgClient, failfast): |
21 """ |
21 """ |
22 Constructor |
22 Constructor |
23 |
23 |
24 @param dbgClient reference to the debug client |
24 @param dbgClient reference to the debug client |
25 @type DebugClientBase |
25 @type DebugClientBase |
|
26 @param failfast flag indicating to stop at the first error |
|
27 @type bool |
26 """ |
28 """ |
27 TestResult.__init__(self) |
29 TestResult.__init__(self) |
28 self.__dbgClient = dbgClient |
30 self.__dbgClient = dbgClient |
|
31 self.failfast = failfast |
29 |
32 |
30 def addFailure(self, test, err): |
33 def addFailure(self, test, err): |
31 """ |
34 """ |
32 Public method called if a test failed. |
35 Public method called if a test failed. |
33 |
36 |