OLD | NEW |
| (Empty) |
1 | |
2 from zope.interface import implements | |
3 | |
4 from twisted.trial.itrial import IReporter | |
5 from twisted.plugin import IPlugin | |
6 | |
7 class _Reporter(object): | |
8 implements(IPlugin, IReporter) | |
9 | |
10 def __init__(self, name, module, description, longOpt, shortOpt, klass): | |
11 self.name = name | |
12 self.module = module | |
13 self.description = description | |
14 self.longOpt = longOpt | |
15 self.shortOpt = shortOpt | |
16 self.klass = klass | |
17 | |
18 | |
19 Tree = _Reporter("Tree Reporter", | |
20 "twisted.trial.reporter", | |
21 description="verbose color output (default reporter)", | |
22 longOpt="verbose", | |
23 shortOpt="v", | |
24 klass="TreeReporter") | |
25 | |
26 BlackAndWhite = _Reporter("Black-And-White Reporter", | |
27 "twisted.trial.reporter", | |
28 description="Colorless verbose output", | |
29 longOpt="bwverbose", | |
30 shortOpt="o", | |
31 klass="VerboseTextReporter") | |
32 | |
33 Minimal = _Reporter("Minimal Reporter", | |
34 "twisted.trial.reporter", | |
35 description="minimal summary output", | |
36 longOpt="summary", | |
37 shortOpt="s", | |
38 klass="MinimalReporter") | |
39 | |
40 Classic = _Reporter("Classic Reporter", | |
41 "twisted.trial.reporter", | |
42 description="terse text output", | |
43 longOpt="text", | |
44 shortOpt="t", | |
45 klass="TextReporter") | |
46 | |
47 Timing = _Reporter("Timing Reporter", | |
48 "twisted.trial.reporter", | |
49 description="Timing output", | |
50 longOpt="timing", | |
51 shortOpt=None, | |
52 klass="TimingTextReporter") | |
53 | |
OLD | NEW |