<div dir="ltr">Hi,<div><br></div><div>The py.test documentation has a nice example on deferring the setup of parametrized resources <a href="http://pytest.org/latest/example/parametrize.html">http://pytest.org/latest/example/parametrize.html</a>.</div><div><br></div><div>Suppose i added an extra test in the test_backends.py file.and collect the test. So far so good.</div><div><br></div><div><div>collected 3 items </div><div>&lt;Module &#39;test_backends.py&#39;&gt;</div><div>  &lt;Function &#39;test_db_initialized[d1]&#39;&gt;</div><div>  &lt;Function &#39;test_db_initialized[d2]&#39;&gt;</div><div>  &lt;Function &#39;test_something_else&#39;&gt;</div></div><div><br></div><div>Running only &#39;test_something_else&#39; works fine, but how can i run only the test_db_initialized[*] tests? Or only one of the test_db_initialized[*] tests, without adding a command line parameter and changing pytest_generate_tests accordingly?</div><div><br></div><div><br></div><div><div>py.test --collect-only test_backends.py::test_db_initialized</div><div>================ test session starts ========================================================</div><div>platform linux2 -- Python 2.7.5 -- py-1.4.26 -- pytest-2.6.4</div><div>plugins: cov</div><div>collecting 3 itemsERROR: not found: [...snip...]/test_backends.py::test_db_initialized</div><div>(no name &#39;[...snip...]/test_backends.py::test_db_initialized&#39; in any of [&lt;Module &#39;test_backends.py&#39;&gt;])</div><div><br></div><div><br></div><div>py.test --collect-only test_backends.py::test_db_initialized[d1]</div><div>zsh: no matches found: test_backends.py::test_db_initialized[d1]</div></div><div><br></div><div>Wouter<br></div></div>