Adding INI file option testpaths through addinivalue_line does not give expected behavior. #3109
Labels
topic: collection
related to the collection phase
topic: config
related to config handling, argument parsing and config file
type: question
general question, might be closed after 2 weeks of inactivity
Im trying to allow users to select specific test directories trough the command line that pytest will run.
List of steps in my program
parser.addini
function insidepytest_addoption
hook to addtestpaths
ini optionpytest_configure
hook useconfig.addinivalue_line
to add the parsed command line option to the ini value created in step 2.I succeed in step 1 and 2 and most likely 3, but I cannot get step 4 to succeed. Pytest just collects all tests instead of specific directories.
platform darwin -- Python 3.6.2, pytest-3.3.2, py-1.4.34, pluggy-0.4.0
The text was updated successfully, but these errors were encountered: