On Wed, Sep 04, 2013 at 17:03 -0700, Yang Zhang wrote:
> You can use -k to filter out tests following a certain name
> pattern/predicate, but can you filter out tests under a certain
> package or directory? Didn't spot any relevant flags in the
> documentation but perhaps I'm missing something.  Thanks.

py.test accepts files and directories::

    py.test -k "..." path/to/dir

will only consider tests from that dir.

holger
_______________________________________________
Pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to