testing library

Test doubles for apps that embed mova: run widget tests with real Movas on a scriptable kernel, never touching media_kit.

给嵌入 mova 的应用用的测试替身:在可编程内核上跑真实的 Mova,完全不碰 media_kit。

Classes

MovaTesting
Switches createMova() to MovaTestKernels for the current test, so widgets that build their player through it (MovaView, or your own code) can be pumped without MediaKit.ensureInitialized().
MovaTestKernel
A scriptable IMovaKernel (+ IMovaStatsProbe) for widget tests: records calls and lets the test push any kernel signal, so a real Mova can run without ever touching media_kit.
MovaTestStep
测试内核的一步媒体行为;after 表示距上一步的等待时间,首步相对 open。 不需要了解首帧信号组合,就绪步骤会自动发出尺寸、时长、缓冲量和首帧。 示例:[MovaTestStep.ready(), MovaTestStep.completed(after: Duration(seconds: 2))]。