Video files of test runs are attached to the Allure Report as 0KB files or multiples of 256KB in size #2828
-
Hi All, I use Allure Report to present the results of e2e tests written using Playwright and PyTest. I have tried to find a solution to this problem on the Internet, but without success, so I decided to ask for advice here. I would appreciate your help or any guidance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The issue is with file buffers. The file system buffers the data on write, and if you call You can try to use |
Beta Was this translation helpful? Give feedback.
The issue is with file buffers. The file system buffers the data on write, and if you call
allure.attach.file()
method before the data is flushed to disk — you'll get the empty attachment. It seems like the file system flushes data in 256K chunks — that's why you see files of such size.You can try to use
fsync
to force buffers to be flushed before callingallure.attach.file()
method.