Option to load initial conftest.py from rootdir rather than current working directory #9311
Labels
topic: config
related to config handling, argument parsing and config file
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
Would it be possible to add an option to load the initial conftest.py from the rootdir (which can be specified on the commandline) instead of using the automatic discovery that is explained in https://docs.pytest.org/en/6.2.x/writing_plugins.html#plugin-discovery-order-at-tool-startup ?
This seems to be the missing piece of the puzzle that would allow me to execute my test suite independently from the current working directory.
Consider e.g. the following commandline:
which only works if the current working directory is below /home/user/project. For now I used a wrapper script that changed the cwd before starting pytest, but this fell apart when I introduced commandline arguments that take a (possibly relative) path.
The text was updated successfully, but these errors were encountered: