diff --git a/bin/pytest-slow b/bin/pytest-slow index a0057410fc..9f9d5ae611 100755 --- a/bin/pytest-slow +++ b/bin/pytest-slow @@ -3,4 +3,4 @@ set -euo pipefail . .venv/bin/activate -exec pytest --numprocesses=auto "$@" -m 'not (tool or mujoco)' dimos +exec pytest "$@" -m 'not (tool or mujoco)' dimos diff --git a/dimos/navigation/nav_stack/tests/test_cross_wall_planning_far.py b/dimos/navigation/nav_stack/tests/test_cross_wall_planning_far.py index e2f22b1356..2a7cf84f7f 100644 --- a/dimos/navigation/nav_stack/tests/test_cross_wall_planning_far.py +++ b/dimos/navigation/nav_stack/tests/test_cross_wall_planning_far.py @@ -26,7 +26,7 @@ unitree_g1_nav_sim, ) -pytestmark = [pytest.mark.skipif_in_ci, pytest.mark.skipif_macos] +pytestmark = [pytest.mark.self_hosted, pytest.mark.skipif_in_ci, pytest.mark.skipif_macos] class TestCrossWallPlanning: diff --git a/dimos/navigation/nav_stack/tests/test_cross_wall_planning_simple.py b/dimos/navigation/nav_stack/tests/test_cross_wall_planning_simple.py index 4fd8ccbe98..f95aa0558f 100644 --- a/dimos/navigation/nav_stack/tests/test_cross_wall_planning_simple.py +++ b/dimos/navigation/nav_stack/tests/test_cross_wall_planning_simple.py @@ -26,7 +26,7 @@ unitree_g1_nav_sim, ) -pytestmark = [pytest.mark.skipif_in_ci, pytest.mark.skipif_macos] +pytestmark = [pytest.mark.self_hosted, pytest.mark.skipif_in_ci, pytest.mark.skipif_macos] class TestCrossWallPlanningSimple: diff --git a/dimos/simulation/unity/test_unity_sim.py b/dimos/simulation/unity/test_unity_sim.py index 4874535e6c..2b0c2572f1 100644 --- a/dimos/simulation/unity/test_unity_sim.py +++ b/dimos/simulation/unity/test_unity_sim.py @@ -54,6 +54,8 @@ _is_linux_x86 = platform.system() == "Linux" and platform.machine() in ("x86_64", "AMD64") _has_display = bool(os.environ.get("DISPLAY")) +pytestmark = pytest.mark.self_hosted + class _MockTransport: def __init__(self): diff --git a/docs/development/testing.md b/docs/development/testing.md index 1ff6d1631b..bcb2b1f69f 100644 --- a/docs/development/testing.md +++ b/docs/development/testing.md @@ -55,7 +55,7 @@ The default `addopts` in `pyproject.toml` includes a `-m` filter that excludes ` ./bin/pytest-slow ``` -(Shortcut for `pytest --numprocesses=auto -m 'not (tool or mujoco)' dimos` — runs the default suite *and* self-hosted tests, but not `tool` or `mujoco`.) +(Shortcut for `pytest -m 'not (tool or mujoco)' dimos` — runs the default suite *and* self-hosted tests, but not `tool` or `mujoco`.) When writing or debugging a specific self-hosted test, override `-m` yourself to run it: