paint last line red if "failures" or "errors" occured, attribute theuni
This commit is contained in:
parent
60a53c75a6
commit
c53556b88d
2
AUTHORS
2
AUTHORS
|
@ -33,4 +33,4 @@ Graham Horler
|
||||||
Andreas Zeidler
|
Andreas Zeidler
|
||||||
Brian Okken
|
Brian Okken
|
||||||
Katarzyna Jachim
|
Katarzyna Jachim
|
||||||
|
Christian Theunert
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
Changes between 2.3.5 and 2.4.DEV
|
Changes between 2.3.5 and 2.4.DEV
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
|
- color the last line red or green depending if failures/errors occured
|
||||||
|
or everything passed. thanks Christian Theunert.
|
||||||
|
|
||||||
- fix issue320 - fix class scope for fixtures when mixed with
|
- fix issue320 - fix class scope for fixtures when mixed with
|
||||||
module-level functions. Thanks Anatloy Bubenkoff.
|
module-level functions. Thanks Anatloy Bubenkoff.
|
||||||
|
|
||||||
|
|
|
@ -457,7 +457,7 @@ class TerminalReporter:
|
||||||
msg = "%s in %.2f seconds" % (line, session_duration)
|
msg = "%s in %.2f seconds" % (line, session_duration)
|
||||||
if self.verbosity >= 0:
|
if self.verbosity >= 0:
|
||||||
markup = dict(bold=True)
|
markup = dict(bold=True)
|
||||||
if 'failed' in self.stats:
|
if 'failed' in self.stats or 'error' in self.stats:
|
||||||
markup['red'] = True
|
markup['red'] = True
|
||||||
else:
|
else:
|
||||||
markup['green'] = True
|
markup['green'] = True
|
||||||
|
|
Loading…
Reference in New Issue