[TIP] REG: Changing standard test discovery

Bruno Oliveira nicoddemus at gmail.com
Wed May 16 08:24:22 PDT 2018


Hi Arun,

There's the `testpaths` variable that might be useful, otherwise I'm sure
you can cook something yourself using some hooks, specially
`pytest_collection_modifyitems`.

Hope this helps,
Bruno

On Wed, May 16, 2018 at 11:52 AM arun kali raja <arunsep886 at gmail.com>
wrote:

> Hi,
>
> The pytest page on changing test discovery
> <https://docs.pytest.org/en/latest/example/pythoncollection.html>  has
> information on how to ignoring a set of paths/testcases.
>
> I want to do something reverse.. I have organised the tests in multiple
> folders in terms of the codeArea  they cover.
>
> If the user triggers tests of codeArea say 'X',  i have some identified
> codeAreas 'Y' and 'Z' whose tests should also be executed.
>
> How to achieve this in pytest?
>
> --
> Regards
> Arun kaliraja.B
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20180516/686bf015/attachment.htm>


More information about the testing-in-python mailing list