nose2 icon indicating copy to clipboard operation
nose2 copied to clipboard

support complex test names in mp plugin

Open jpellerin opened this issue 13 years ago • 6 comments

To support tests with layers and those loaded via load_tests, the mp plugin needs to be able to handle more complex instructions than 'load this test from this one name'.

jpellerin avatar Jun 16 '12 14:06 jpellerin

I'm not sure this is relevant, but there is one feature that I'm missing compared to zope.testrunner ( http://pypi.python.org/pypi/zope.testrunner/4.0.4 ). To be able to filter test selection with command line. Examples how I would expect it to work:

following would do case-insensitive matching over test method, class and module/package.

$ nosetests -t test_foo

domenkozar avatar Jun 16 '12 16:06 domenkozar

Basically: https://code.google.com/p/python-nose/issues/detail?id=207

domenkozar avatar Jun 28 '12 18:06 domenkozar

Implemented a plugin for the task: https://github.com/iElectric/nose-selecttests

domenkozar avatar Jul 08 '12 22:07 domenkozar

@iElectric you are looking for the attributes plugin for nose2 and it is offtopic for this issue.

thedrow avatar May 30 '13 02:05 thedrow

@jpellerin What kind of instructions does mp needs to have?

thedrow avatar Jul 18 '13 22:07 thedrow

I haven't thought this one out fully yet. But I think in general so support things like the layers plugin, mp needs to be able to send more than just the name of a test, it needs to send a data structure of some kind. Like a dict with layer:, tests: and sublayers: keys, which may contain other dicts with the same keys. But more generic so that other plugins that need to execute tests in a certain pattern can instruct mp also.

On Thu, Jul 18, 2013 at 6:28 PM, Omer Katz [email protected] wrote:

@jpellerin https://github.com/jpellerin What kind of instructions does mp needs to have?

— Reply to this email directly or view it on GitHubhttps://github.com/nose-devs/nose2/issues/42#issuecomment-21219820 .

jpellerin avatar Jul 19 '13 13:07 jpellerin