I have a long run test, which lasts 2 days, which I don\'t want to include in a usual test run. I also don\'t want to type command line parameters, that would deselect it and ot
try to decorate your test as @pytest.mark.longrun
in your conftest.py
def pytest_addoption(parser):
parser.addoption('--longrun', action='store_true', dest="longrun",
default=False, help="enable longrundecorated tests")
def pytest_configure(config):
if not config.option.longrun:
setattr(config.option, 'markexpr', 'not longrun')