Skip to content

Add Java recording engine tests - #381

Merged
vincebln2 merged 1 commit into
VibiumDev:mainfrom
vincebln2:test/java-recording-380
Aug 19, 2026
Merged

Add Java recording engine tests#381
vincebln2 merged 1 commit into
VibiumDev:mainfrom
vincebln2:test/java-recording-380

Conversation

@vincebln2

Copy link
Copy Markdown
Collaborator

Fixes #380

The Java client has shipped the recording API since the original client drop and gained the video track in #332, with no tests on any of it: the coverage went into the JS and Python suites. This adds the missing Java engine tests.

Five tests in RecordingTest, class-marked with the core capability:

  • start/stop writes a zip to the declared path, bytes stay null, durationMs present
  • stop(path) overrides the path declared at start
  • explicit video(true) fails at start on an engine without support, with the actionable error
  • best-effort video (option unset) reports videoUnavailable and still lands the trace
  • on Firefox, the video track carries real width, height, and duration

Video has no capability manifest entry, so the video tests branch on VIBIUM_ENGINE with JUnit assumptions, mirroring how the JS chrome-video and firefox suites split the same coverage.

Verified:

  • Chrome: 4 ran, 1 skipped (the Firefox-only dimensions test), green
  • Firefox: 3 ran including the video dimensions test, 2 chrome-only skipped, green

Recording shipped with the original Java client and VibiumDev#332 added the video
track; all the coverage lived in the JS and Python suites. Test start and
stop with the zip landing at the declared path, the stop-time path
override, explicit video failing at start on an engine without support,
best-effort video reporting videoUnavailable, and the Firefox video track
carrying real dimensions and duration.

Fixes VibiumDev#380
@vincebln2
vincebln2 merged commit 031a79f into VibiumDev:main Aug 19, 2026
3 checks passed
@vincebln2
vincebln2 deleted the test/java-recording-380 branch August 21, 2026 18:40
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.

Java client: add recording tests

1 participant