Comment 11 for bug 82693

On Thu, 2009-04-16 at 20:30 +0000, James Westby wrote:
> Hi,
> Having a better solution for this would be great, but with the help of
> jam and vila I just knocked this up:
> if __name__ == '__main__':


from bzrlib import option, commands
    test_coverage, 'test_plugin')

def test_plugin(cmd):
    if != 'selftest':
    def handle_test_plugin(option, name, value, parser):
        cmd.additional_selftest_args['starting_with'] = \
            'bzrlib.plugins.%s' % value
    cmd.takes_options = list(cmd.takes_options)
           help='Run tests for a single named plugin',