django-setuptest icon indicating copy to clipboard operation
django-setuptest copied to clipboard

Use setuptools' test_loader parameter

Open jezdez opened this issue 14 years ago • 2 comments

In setuptools and distribute there is another parameter to setup() called test_loader (http://peak.telecommunity.com/DevCenter/setuptools#test-loader) which could be used to load the setuptest test runner instead of having to monkey patch the test command. Just an idea.. :)

jezdez avatar Sep 01 '11 09:09 jezdez

Very interesting, should be much better than monkey-patching. I've been looking through the code now but can't figure out how test_loader can be used to alter the actual test runner. Seems like test_loader only really influences test lookup and I'd still need to do some sort of wonkey-patching somewhere. Any clues, existing package example maybe? Thanks for the pointer nonetheless, I was unaware of test_loader.

shaunsephton avatar Sep 01 '11 11:09 shaunsephton

Yeah, not sure about the usefulness of the parameter, to be honest. But you could even just do the monkey patch there, it's not like setuptools isn't doing the same extensively, too ;)

jezdez avatar Sep 05 '11 08:09 jezdez