<div dir="ltr">Hi Arun,<div><br></div><div>There&#39;s the `testpaths` variable that might be useful, otherwise I&#39;m sure you can cook something yourself using some hooks, specially `pytest_collection_modifyitems`.</div><div><br></div><div>Hope this helps,</div><div>Bruno</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 16, 2018 at 11:52 AM arun kali raja &lt;<a href="mailto:arunsep886@gmail.com">arunsep886@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>The pytest page on <a href="https://docs.pytest.org/en/latest/example/pythoncollection.html" target="_blank">changing test discovery</a>  has information on how to ignoring a set of paths/testcases.</div><div><br>I want to do something reverse.. I have organised the tests in multiple folders in terms of the codeArea  they cover.</div><div><br></div><div>If the user triggers tests of codeArea say &#39;X&#39;,  i have some identified codeAreas &#39;Y&#39; and &#39;Z&#39; whose tests should also be executed. </div><div><br></div><div>How to achieve this in pytest?</div></div><div dir="ltr"><div><div> </div>-- <br><div class="m_1979525349276545047gmail_signature" data-smartmail="gmail_signature">Regards</div><div class="m_1979525349276545047gmail_signature" data-smartmail="gmail_signature">Arun kaliraja.B</div>
</div></div></blockquote></div>