Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ def pytest_addoption(parser):
dest="headless",
help="Run with graphics",
)
parser.addoption(
"--include-motion-planning",
action="store_true",
default=False,
help="Include motion planning tests (disabled by default)",
)


# These parameter names match up with the parameter names for
Expand Down Expand Up @@ -54,12 +60,13 @@ def pytest_generate_tests(metafunc):

# temporarily excludes the motion planning tests until the motion planning algorithms are working
def pytest_collection_modifyitems(config, items):
"""Exclude tests from motion_planning folder."""
remaining = []
if config.getoption("--include-motion-planning"):
return

skip_mp = pytest.mark.skip(reason="motion planning not ready")
for item in items:
if "motion_planning" not in str(item.fspath):
remaining.append(item)
items[:] = remaining
if "motion_planning" in item.keywords:
item.add_marker(skip_mp)


@pytest.fixture
Expand Down
Loading