-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛Bug]: Error in console ENOENT: no such file or directory, open Video-reporter.log
after run tests
#145
Comments
Thanks for reporting! We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers! |
@christian-bromann I investigated this issue many times. And I think I found the reason. First, logs are created: That's why I think there were cases with bug; I have added a temporary solution in
In this case, the log folder will be created before each test run. I think the permanent solution would be to create logs at the same time. Or need to look for other options. |
So the reports are being overwritten by another test? |
In this case, the file is not created and the test fails |
How does the test fail due to a non existing log file? |
In this case, I think the error was not that the file does not exist. The problem is that it tried to create a log file in a non-existent folder. |
Ah, I think this can be fixed. All contributions would be appreciated! |
webdriverio/webdriverio#12097 (comment)
WebdriverIO Version
8.20.5
Node.js Version
18.17.1
Mode
WDIO Testrunner
Which capabilities are you using?
What happened?
Sometimes I get this error in console and and my tests are failing. This error does not always occur.
I use moment library for generate logs folder for each tests run. This is convenient when each folder has the format
YYYY-MM-DD_HH-mm
.Same issue in Ubuntu LTS 22.04 and Windows 10x64 for me.
Currently I use
4.0.5
Wdio video reporter version. But same issue in latest version5.1.1
Are there ways to solve this problem? Or is there an option to disable
wdio-0-0-Video-reporter.log
file log creation?What is your expected behavior?
No error in console.
How to reproduce the bug.
I think need to use same configuration and run tests. Sometimes it reproduces
Relevant log output
The text was updated successfully, but these errors were encountered: