diff --git a/pyproject.toml b/pyproject.toml index 61c214d..47b40c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ markers = [ "integration: integration tests (requires RUN_INTEGRATION=1)", "e2e: end-to-end tests with real daemon + Agent (requires RUN_INTEGRATION=1)", ] -addopts = "-m 'not integration and not e2e'" +addopts = "-m not integration and not e2e" [tool.pyright] venvPath = "." diff --git a/tests/conftest.py b/tests/conftest.py index ba0bd54..1eca4f9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,6 +21,10 @@ def pytest_configure(config): for name, desc in markers.items(): config.addinivalue_line("markers", f"{name}: {desc}") + # When RUN_INTEGRATION=1, remove default marker filter so integration/e2e tests run + if os.environ.get("RUN_INTEGRATION"): + config.known_args_namespace.markexpr = "" + @pytest.fixture def isolated_data_root(tmp_path):