Spaces:
Running
Running
Commit History
-
Fix tester-reported bugs: stop responsiveness, dropdown race, debounce
RemiFabrePost-tester feedback fixes: - stopRecording/stopPlayback now call fetchState() for immediate UI update - Dataset dropdown won't snap back during in-flight select (datasetSwitching flag) - Stop buttons debounced with stopping flag to prevent duplicate requests - Storage hint clarified: "Datasets are stored on this computer at: ..." - New mic-only recording mode (audio without motion capture) - /api/version endpoint and startup version logging - TESTING.md updated with clearer commit/push instructions for testers Tests: 123 unit + 58 E2E (was 110 + 48)7476d4e
-
Add AGC, API contract, and E2E tests for refactoring protection
RemiFabreUnit tests (+18): - TestMicAgcConfig (9): disable/restore AGC with mock USB device, graceful handling of missing device, import errors, USB failures - TestApiContracts (9): verify exact response shapes for /api/state, config, moves, datasets, record, create-dataset, experiments — protects against accidental field renames during frontend refactoring E2E tests (+7): - TestFormEdgeCases: duration persists in localStorage - TestCommunitySection (3): section exists, expands, fetch button works - TestHfUploadSection (3): username field and sync button presence Total: 113 unit + 51 E2E + 37 hardware = 201 tests25ea24a -
Update docs to reference deploy_wireless.sh and stop_app.sh
RemiFabre- MANUAL_TESTING.md: replace manual startup commands with deploy script, add Wireless vs Lite instructions, reference stop_app.sh - TESTING.md: add "Deploying to the robot" section, add scripts to layout - REMOTE_TESTING.md: fix Python version (3.10 → 3.12), cross-ref deployce5ae30 -
Add critical hardware tests for real-world breakage scenarios
RemiFabre- TestStopDuringPlayback: stop mid-playback and during goto-start-pose - TestStopDuringRecording: stop mid-recording, verify partial save - TestMultipleRecordPlayCycles: 5 back-to-back record/play cycles - TestPlaybackWithCorruptFile: deleted/truncated JSON recovery These cover the most common user interactions that were previously untested on real hardware: interrupting playback, cancelling recordings, repeated usage sessions, and filesystem inconsistencies. Total: 95 unit + 44 E2E + 37 hardware = 176 tests.dc8a097 -
Expand test suite to ~170 tests across 3 tiers
RemiFabreUnit tests (65 → 95): Add 7 new test classes covering upload-audio endpoint, motion model endpoint, community datasets, corrupt data recovery, concurrent state rejection, duration edge cases, and sync dataset validation. E2E tests (18 → 44): Add 8 new test classes covering recording lifecycle, playback lifecycle, delete with confirm/cancel dialogs, dataset creation/switching, audio source radios, settings panel, and form edge cases including localStorage persistence. Hardware tests (24 → 31): Add 4 new test classes for existing recording playback, record-then-playback fidelity and timing, antenna/body_yaw data verification, and synthetic antenna playback. Also: - Add make_wav_bytes() helper to conftest.py for upload tests - Create tests/REMOTE_TESTING.md documenting SSH/rsync workflow - Update run_tests.py TEST_CLASS_DESCRIPTIONS with all new classes - Update TESTING.md tables with new test counts - Fix smart quotes (U+201D) in index.html that broke CSS selectors7659b58 -
Add remote hardware testing via SSH and redesign motion accuracy tests
RemiFabre- New run_on_robot.py: rsyncs code to robot, runs pytest -m hardware via SSH, streams output in real-time, fetches JSON report back - Redesign TestMotionAccuracy: replace set_target() approach (which conflicts with Marionette's internal control) with synthetic reference recordings played back via the API and observed via get_current_head_pose() - Add --on-robot flag to run_tests.py for convenience delegation - Update TESTING.md with remote testing docs and SSH setup guide1f09aa2 -
Fix hardware test cascade: isolate audio tests, skip on mic failure
RemiFabreAudio recording can hang on Ubuntu when the default mic is the robot's mic. Previously this caused 9/11 hardware tests to fail in cascade. Changes: - Move audio tests to TestHardwareAudio class (runs last) - _ensure_idle skips (not fails) when server is stuck from audio hang - Module-level _server_stuck flag prevents 30s waits per test - Silent tests (8/11) now pass independently of audio availability - Update TESTING.md and run_tests.py with new test class structure - Regenerate coverage matrix (all green: 66 unit + 54 E2E + 8 hw)e22d8a3 -
Fix TESTING.md: clarify web coverage is on HF Space, not localhost
RemiFabreThe Test Coverage section lives in the Space's index.html, not the app's web GUI. Also note that WebKit is Safari's browser engine.580d9f5
-
Add audio playback test to hardware suite
RemiFabreSplit test_playback_completes into test_playback_silent_completes and test_playback_with_audio_completes so the sound replay path through reachy_mini.media.play_sound() is exercised during hardware testing.c63359c -
Improve testing: verbose output, web coverage panel, hardware tests
RemiFabre- Rewrite TESTING.md with tester-first structure (run_tests.py front and center) - run_tests.py: verbose pytest output, per-class test catalog summary, export static/test_coverage.json for web UI, --hardware flag - show_matrix.py: display test catalog alongside coverage matrix - Add collapsible Test Coverage panel to the web page (fetches test_coverage.json, renders matrix table + test catalog + summary) - Create test_hardware.py with 5 @pytest.mark.hardware integration tests (startup, silent/audio recording, playback, record-and-delete) - Auto-skip hardware tests unless -m hardware is specifiedc89c89c -
Add test documentation, runner script, and coverage matrix
RemiFabre- TESTING.md: how to install deps, run unit/E2E tests, use matrix - tests/run_tests.py: auto-detects OS, prompts for robot model, runs all suites, logs to test_results.json, prints matrix - tests/show_matrix.py: standalone matrix viewer - pyproject.toml: add pytest-playwright and pytest-json-report to dev deps - .gitignore: ignore test_results.json and .report.jsonc8c8f12