~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/plugins/twisted_trial.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
54
Subunit = _Reporter("Subunit Reporter",
 
55
                    "twisted.trial.reporter",
 
56
                    description="subunit output",
 
57
                    longOpt="subunit",
 
58
                    shortOpt=None,
 
59
                    klass="SubunitReporter")