[TIP] py.test: collectonly and -k

holger krekel holger at merlinux.eu
Fri Feb 25 07:26:40 PST 2011


On Fri, Feb 25, 2011 at 16:23 +0100, Pere Martir wrote:
> How can know which tests will be executed if I select the tests by the
> option -k of py.test ?
> 
> It seems to me that option -collectonly doesn't respect the option -k. That
> is, -collectonly shows the result of collection before applying the
> expression of -k.

If you file a bug report at

    https://bitbucket.org/hpk42/pytest/issues?status=new&status=open

i'll try to fix it before releasing a 2.0.2 hopefully next week.

cheers,
holger




More information about the testing-in-python mailing list