/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Curtis Hovey
  • Date: 2012-02-27 22:07:36 UTC
  • mfrom: (776.2.11 ui-factory)
  • mto: This revision was merged to the branch mainline in revision 782.
  • Revision ID: sinzui.is@verizon.net-20120227220736-zjme9rpbk952hg23
Merged UI and test goodness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
class Check(Command):
25
25
    description = "Run unit tests"
26
26
 
27
 
    user_options = []
 
27
    user_options = [
 
28
        ('module=', 'm', 'The test module to run'),
 
29
        ]
28
30
 
29
31
    def initialize_options(self):
30
 
        pass
 
32
        self.module = 'discover'
31
33
 
32
34
    def finalize_options(self):
33
35
        pass
42
44
        from bzrlib.plugins.gtk.tests import load_tests
43
45
        suite = TestSuite()
44
46
        loader = TestLoader()
45
 
        load_tests(suite, None, loader)
 
47
        load_tests(suite, self.module, loader)
46
48
        runner = TextTestRunner()
47
49
        result = runner.run(suite)
48
50
        return result.wasSuccessful()