[SciPy-dev] [OT] Skipping a function wronlgy identified by nose

Robert Kern robert.kern at gmail.com
Thu Feb 19 16:40:57 EST 2009


On Thu, Feb 19, 2009 at 15:37, Gael Varoquaux
<gael.varoquaux at normalesup.org> wrote:
> On Thu, Feb 19, 2009 at 03:34:49PM -0600, Robert Kern wrote:
>> Some combination of these should be useful to you.
>
>>   -m TESTMATCH, --match=TESTMATCH, --testmatch=TESTMATCH
>>                         Use this regular expression to find tests
>>                         [NOSE_TESTMATCH]
>>   -e EXCLUDE, --exclude=EXCLUDE
>>                         Don't run tests that match regular expression
>>                         [NOSE_EXCLUDE]
>>   -i INCLUDE, --include=INCLUDE
>>                         Also run tests that match regular expression
>>                         [NOSE_INCLUDE]
>
> Do you know a way of making these options, or some attribute plugins
> options, module-level? I know how to add them in the setup.cfg, but the
> developpers run the test suite from all over the place. And I don't want
> to make it more difficult for them to run the test suite, as they already
> don't run it often.

If the settings don't conflict with other nose-using projects (e.g. -e
'.*_test$') then your developers can probably use ~/.noserc .

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the SciPy-Dev mailing list