Skip to content

Add integration test for MjpegFrameSource pipeline - #15

Merged
Konstantysz merged 2 commits into
devfrom
feature/integration-test-mjpeg-pipeline
Mar 9, 2026
Merged

Add integration test for MjpegFrameSource pipeline#15
Konstantysz merged 2 commits into
devfrom
feature/integration-test-mjpeg-pipeline

Conversation

@Konstantysz

Copy link
Copy Markdown
Owner

Summary

  • tests/integration/TestMjpegPipeline.cpp — 4 test cases using a local synthetic MJPEG .avi (no network required)
  • tests/CMakeLists.txt — registered TestMjpegPipeline linking SH3DS::Core SH3DS::Capture SH3DS::FSM SH3DS::Vision

Test cases

  • MjpegSourceProducesFrames — opens local MJPEG, grabs all 5 frames, verifies dims + sequenceNumber
  • FramesPassThroughPreprocessor — each frame passes Process(), both ROIs (full_screen, pokemon_sprite) non-empty
  • SourceDoesNotImplementFrameSeekerdynamic_cast<FrameSeeker*> returns nullptr
  • PipelineHandlesStreamEnd — drains stream, further Grab() returns nullopt without crash

Test plan

  • All 4 new tests pass
  • All 173 tests pass (no regressions, including TestXYStarterFennekinReplay)

Closes #9

@Konstantysz
Konstantysz merged commit 1903543 into dev Mar 9, 2026
1 check failed
@Konstantysz
Konstantysz deleted the feature/integration-test-mjpeg-pipeline branch March 9, 2026 18:30
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.

1 participant