2
from zope.interface import implements
4
from twisted.trial.itrial import IReporter
5
from twisted.plugin import IPlugin
7
class _Reporter(object):
8
implements(IPlugin, IReporter)
10
def __init__(self, name, module, description, longOpt, shortOpt, klass):
13
self.description = description
14
self.longOpt = longOpt
15
self.shortOpt = shortOpt
19
Tree = _Reporter("Tree Reporter",
20
"twisted.trial.reporter",
21
description="verbose color output (default reporter)",
26
BlackAndWhite = _Reporter("Black-And-White Reporter",
27
"twisted.trial.reporter",
28
description="Colorless verbose output",
31
klass="VerboseTextReporter")
33
Minimal = _Reporter("Minimal Reporter",
34
"twisted.trial.reporter",
35
description="minimal summary output",
38
klass="MinimalReporter")
40
Classic = _Reporter("Classic Reporter",
41
"twisted.trial.reporter",
42
description="terse text output",
47
Timing = _Reporter("Timing Reporter",
48
"twisted.trial.reporter",
49
description="Timing output",
52
klass="TimingTextReporter")
54
Subunit = _Reporter("Subunit Reporter",
55
"twisted.trial.reporter",
56
description="subunit output",
59
klass="SubunitReporter")