nose icon indicating copy to clipboard operation
nose copied to clipboard

how to use nose plugin?

Open skyfulzhang opened this issue 6 years ago • 0 comments

At nose documentation about Writing Plugins,i have see the code like this : `import logging import os

from nose.plugins import Plugin

log = logging.getLogger('nose.plugins.helloworld')

class HelloWorld(Plugin): name = 'helloworld'

def options(self, parser, env=os.environ):
    super(HelloWorld, self).options(parser, env=env)

def configure(self, options, conf):
    super(HelloWorld, self).configure(options, conf)
    if not self.enabled:
        return

def finalize(self, result):
    log.info('Hello pluginized world!')`

Now i want to use this nose plugin on commond just like nosetests -v -s --with-helloworld ,but i donot know how to use? Can you give me some suggestion?

skyfulzhang avatar Jan 15 '19 08:01 skyfulzhang