Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"*_test.py"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true
"python.testing.unittestEnabled": true,
"files.associations": {
"*.hss": "yaml"
}
}
36 changes: 36 additions & 0 deletions autonomy/src/mission_planner/tests.hss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Mission Planner Tests Configuration
# Tests for mission planning and execution
name: "Mission Planner Tests"
description: "Tests for mission planning and execution modules"
strategy: "integration"

tests:
- name: "Slalom Mission Test"
path: "test_slalom_integration.py"
args: []
timeout: 300
infinite_loop: false
description: "Integration test for slalom mission"
strategy: "UnitTestStrategy"
enabled: true
test_type: "python"

- name: "Gate Mission Test"
path: "test_gate_mission.py"
args: []
timeout: 300
infinite_loop: false
description: "Integration test for gate mission"
strategy: "UnitTestStrategy"
enabled: true
test_type: "python"

- name: "Mission Controller Test"
path: "test_mission_controller.py"
args: []
timeout: 180
infinite_loop: false
description: "Unit test for mission controller"
strategy: "UnitTestStrategy"
enabled: true
test_type: "python"
36 changes: 36 additions & 0 deletions autonomy/src/tests.hss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Computer Vision Tests Configuration
# Tests for the computer vision module
name: "Computer Vision Tests"
description: "Tests for CV publishers and detection systems"
strategy: "unit"

tests:
- name: "CV Publishers Unit Test"
path: "test_cv_publishers.py"
args: []
timeout: 120
infinite_loop: false
description: "Unit tests for CV publishers module"
strategy: "UnitTestStrategy"
enabled: true
test_type: "python"

- name: "Detection Core Test"
path: "../computer_vision/test_detection_core.py"
args: []
timeout: 60
infinite_loop: false
description: "Unit tests for detection core functionality"
strategy: "UnitTestStrategy"
enabled: true
test_type: "python"

- name: "CV Integration Test"
path: "test_cv_integration.py"
args: []
timeout: 180
infinite_loop: false
description: "Integration tests for computer vision pipeline"
strategy: "UnitTestStrategy"
enabled: true
test_type: "python"
26 changes: 26 additions & 0 deletions devices/DVL/Wayfinder/tests.hss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# DVL Driver Tests Configuration
# Tests for DVL (Doppler Velocity Log) driver functionality
name: "DVL Driver Tests"
description: "Tests for DVL driver and communication"
strategy: "unit"

tests:
- name: "DVL Driver Basic Test"
path: "driver_test.py"
args: []
timeout: 60
infinite_loop: false
description: "Basic functionality test for DVL driver"
strategy: "UnitTestStrategy"
enabled: true
test_type: "python"

- name: "DVL Communication Test"
path: "communication_test.py"
args: []
timeout: 120
infinite_loop: false
description: "Test DVL communication protocols"
strategy: "UnitTestStrategy"
enabled: false # Disabled by default (requires hardware)
test_type: "python"
15 changes: 15 additions & 0 deletions hydrus-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# Hydrus CLI Wrapper - executes python -m scripts.cli
# This wrapper ensures proper module execution with correct Python path

# Get the directory where this wrapper is located (should be project root)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Set HYDRUS_ROOT environment variable to ensure test system works correctly
export HYDRUS_ROOT="$SCRIPT_DIR"

# Change to the project directory to ensure proper module resolution
cd "$SCRIPT_DIR"

# Execute the CLI module with proper Python path
exec python3 -m scripts.cli "$@"
4 changes: 4 additions & 0 deletions scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import typer

from .commands.arduino import arduino_command
from .commands.autonomy import autonomy_app
from .commands.ros import ros_app
from .commands.test import test_app
from .commands.tmux import tmux_command
Expand All @@ -12,6 +13,9 @@
app.add_typer(
arduino_command, name="arduino", help="Arduino device management commands"
)
app.add_typer(
autonomy_app, name="autonomy", help="Autonomy system and CV pipeline management"
)
app.add_typer(ros_app, name="ros", help="ROS workspace and utilities management")
app.add_typer(test_app, name="test", help="Test suite management and execution")
app.add_typer(tmux_command, name="tmux", help="Tmux session management commands")
Expand Down
Loading
Loading