[py-dev] Avoiding directories when running py.test
Hi, I have a project where I am using py.test, that contains a copy of an external project. That external project has some test directories and files, which are not using py.test Is there a way I can tell py.test to avoid those directories ? cheers, Philippe
Philippe Fremy wrote:
Hi,
I have a project where I am using py.test, that contains a copy of an external project.
That external project has some test directories and files, which are not using py.test
Is there a way I can tell py.test to avoid those directories ?
Does the information in sections 2.3 <http://codespeak.net/py/dist/test.html#automatic-collection-of-tests-on-all-...> and 2.5 <http://codespeak.net/py/dist/test.html#selecting-tests-by-keyword> of the manual help?
cheers,
Philippe
_______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev
Put into this directory file named conftest.py which contains this: import py class Directory(py.test.collect.Directory): def run(self): return [] On Fri, Dec 12, 2008 at 6:20 PM, Philippe Fremy <phil@freehackers.org> wrote:
Hi,
I have a project where I am using py.test, that contains a copy of an external project.
That external project has some test directories and files, which are not using py.test
Is there a way I can tell py.test to avoid those directories ?
cheers,
Philippe
_______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev
participants (3)
-
Jim Vickroy -
Maciej Fijalkowski -
Philippe Fremy