pombreda / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

__test__ = False in a package init should disable tests for that package #367

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I have a packages

foo
   bar
   baz
   tests

and I run nosetests in foo, I believe I should be about to set __test__ = False 
in foo.baz.__init__ in order to skip any tests in subtree at baz.

I know that I may be able to use --exclude. However, I am trying to publish a 
package that is part of a larger library. I would like other library testers to 
be able to just "point nosetest at the tree" and have it work.

(Alternately, a .noserc in a particular module to give settings for that 
subtree would be nice.)

It is not clear that this wouldn't work from the current docs, but this is 
mostly an enhancement proposal.

Thanks! -- shaunc

Original issue reported on code.google.com by sha...@factfiber.com on 24 Sep 2010 at 5:51

GoogleCodeExporter commented 9 years ago
That'd be great.
I would like to use this feature like
  __test__ = check_if_some_str_is_in_environment()
to fine control continuous integration builds

Original comment by moo...@wwwendt.de on 5 Jan 2012 at 4:34

GoogleCodeExporter commented 9 years ago
Nose development has moved to github, you can follow this issue here: 
https://github.com/nose-devs/nose/issues/116

Original comment by jpelle...@gmail.com on 5 Jan 2012 at 5:16