Open Diazole opened 1 year ago
I saw this behaviour as well when working on other issues in video-reporter, but the previous test frames were always saved into the correct folder - they were just returned late. Everything happens asynchronously internally, so the screenshots are received some time after they are requested. I also noticed that onTestStart for the next test was called before onTestEnd for the preceding test had completed in many cases.
Following the log output gave the impression of frames for different tests being mixed but examining the filesystem following the suite run showed everything to be in order.
Are you seeing different behaviour?
@Diazole thanks for raising the issue. Mind providing a minimal reproducible example to help us investigate the issue?
Describe the bug The last frame from the previous test is incorrectly saved as the first frame of the current test.
On the last test, a screenshot was taken after the call to
ffmpeg
.I'm not sure where to start looking to help diagnose this issue as it appears to be a sync problem.
Log I have trimmed some of the incoming commands as I don't believe they add value.
To Reproduce I'll attempt to create an example repo and update this issue soon
Expected behavior Frames from a previous test/suite shouldn't be added to the current test/suite
Environment (please complete the following information):