[TIP] nose2: the nosening

Michael Foord fuzzyman at voidspace.org.uk
Thu Aug 5 16:33:48 PDT 2010

On 05/08/2010 22:42, jason pellerin wrote:
> Hey all,
> http://bitbucket.org/jpellerin/nose2
> It begins! Requires the plugins branch of unittest2 from
> hg.python.org.


> Much does not actually work, because it's loading its
> plugins in a wrong and evil way.
> This brings up a unittest2 feature request, of course. As it stands
> it's not that easy for a framework to declare a bunch of plugins that
> it wants loaded automatically.

Do you *just* want to load plugins and not any extra configuration into 
the config data structure? If that is the case why not just call 
loadPlugin for each of the plugins you want to load?

The config files won't be loaded at this stage, it just means that any 
info you want from the user config files should be pulled out in the 
pluginsLoaded event instead of the __init__ method of the plugin.

All the best,

Michael Foord

> Maybe TestProgram.__init__ can take a
> configFiles option? Or in some other way allow a framework to inject
> its list of plugins into the normal plugin loading process?
> Oh and yeah, this is the part where everybody who said "I want to
> help!" can start helping. :) Even if that just means filing issues in
> the bitbucket tracker or cataloging the weird things that nose does
> that nose2 should also do (or not). Whatever you can do, if you care
> about there being a nose2, the time has come to pitch in -- it won't
> make it to pypi without you.
> Thanks,
> JP
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python


READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

More information about the testing-in-python mailing list