Skip to content

Make sensor press tests run until Enter is pressed#70

Merged
maximilianeberlein merged 1 commit into
mainfrom
feature/test-sensors-enter-to-stop
May 14, 2026
Merged

Make sensor press tests run until Enter is pressed#70
maximilianeberlein merged 1 commit into
mainfrom
feature/test-sensors-enter-to-stop

Conversation

@fabricenoelbourquin

Copy link
Copy Markdown
Member

Summary

  • Phases 2 and 3 in test_sensors.py previously ran each finger press test for a hardcoded short duration (1.5s / 2.5s)
  • Now the live display runs continuously until the user presses Enter, allowing thorough testing at their own pace
  • Backward-compatible: the duration_s fallback is still available when no stop event is provided

Test plan

  • Run uv run python scripts/test_sensors.py with sensors connected
  • Verify each finger press phase waits for Enter before moving to the next finger
  • Verify non-interactive phases (frame rate, zeroing, lifecycle) are unaffected

Instead of hardcoded short durations (1.5s / 2.5s), the interactive
press tests in phases 2 and 3 now run continuously until the user
presses Enter, allowing thorough testing at the user's own pace.
@maximilianeberlein
maximilianeberlein self-requested a review May 14, 2026 14:12
@maximilianeberlein
maximilianeberlein merged commit 7c22445 into main May 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants