https://github.com/abusalimov/pytest-travis-fold/issues/14 --- pytest-travis-fold-1.3.0/pytest_travis_fold.py.orig +++ pytest-travis-fold-1.3.0/pytest_travis_fold.py @@ -182,7 +182,7 @@ ) -@pytest.mark.trylast # to let 'terminalreporter' be registered first +@pytest.hookimpl(trylast=True) # to let 'terminalreporter' be registered first def pytest_configure(config): travis = TravisContext(config.option.travis_fold) if not travis.fold_enabled: