[pytest-dev] collecting tests from a testsuite file

Derek Sisson philosophe at gmail.com
Thu Nov 21 14:56:12 EST 2019


A quick sanity-check question: is there a plugin or otherwise obvious way
to specify tests to run by pulling the names of the tests in from a static
file? It pains me to ask this, because it is so retrograde with respect to
the power of dynamic collection.

Basically, I need to list out the names of test methods in static file, and
then collect those tests. For example:

testuite.py
tests = ['test_1', 'test_2', 'test_3[param_foo]', etc]

thanks,
--derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20191121/31d29293/attachment.html>


More information about the pytest-dev mailing list