-
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
Video reporter is not working on new project #133
Comments
@soroko-sergey thanks for raising the issue. I've seen someone else posting the issue so definitely something funky here. Any contributions or investigations would be appreciated. |
I was running into this issue as well and was able to find a fix by updating the outputDir details. I have another hotfix prepared to have a fallback in the instance where the outputDir is not set in capabilities nor the reporter configuration. With this implemented, I have been able to use the screenshots effectively and linked up the results with the nice-html reporter. Here are the configurations I have ended with:
|
FWIW Mine is now working after version |
Describe the bug
I install the wdio (npm init wdio@latest .) select the video reporter as an option, finish the installing
after running the example of tests I see the next error
[0-0] Error in ""before all" hook in "{root}"" Error: done() called multiple times in hook <"before all" hook in "{root}"> (of root suite); in addition, done() received error: TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined at createMultipleDoneError (/Users/*/node_modules/mocha/lib/errors.js:428:13) at multiple (/*/node_modules/mocha/lib/runnable.js:290:24) at Hook.done [as callback] (/*/node_modules/mocha/lib/runnable.js:301:14) at Runner._uncaught (/*/node_modules/mocha/lib/runner.js:1011:21) at process.emit (node:events:530:35) at process.emit (node:domain:488:12) at process._fatalException (node:internal/process/execution:178:25) [0-0] file:///*/node_modules/@wdio/reporter/build/index.js:89 [0-0] hookStats.complete(getErrorsFromEvent(hook)); [0-0] ^ [0-0] [0-0] TypeError: Cannot read properties of undefined (reading 'complete') [0-0] at SpecReporter.<anonymous> (file:///*/node_modules/@wdio/reporter/build/index.js:89:23) [0-0] at SpecReporter.emit (node:events:518:28) [0-0] at SpecReporter.emit (node:domain:488:12) [0-0] at file:///usr/local/lib/node_modules/@wdio/local-runner/node_modules/@wdio/runner/build/reporter.js:47:56 [0-0] at Array.forEach (<anonymous>) [0-0] at BaseReporter.emit (file:///usr/local/lib/node_modules/@wdio/local-runner/node_modules/@wdio/runner/build/reporter.js:47:25) [0-0] at MochaAdapter.emit (file:///*/node_modules/@wdio/mocha-framework/build/index.js:162:24) [0-0] at Runner.emit (node:events:530:35) [0-0] at Runner.emit (node:domain:488:12) [0-0] at Runner.fail (/*/node_modules/mocha/lib/runner.js:453:8) [0-0] [0-0] Node.js v20.11.0 [0-0] FAILED in chrome - file:///test/specs/example.e2e.js
everything works good after removing the video reporter from list of reporters from config file. Could you help me with that?
package.json looks like
{
"name": "wdiosandbox",
"type": "module",
"devDependencies": {
"@wdio/allure-reporter": "^8.28.0",
"@wdio/local-runner": "^8.28.0",
"@wdio/mocha-framework": "^8.28.0",
"@wdio/spec-reporter": "^8.28.0",
"chromedriver": "^120.0.1",
"wdio-chromedriver-service": "^8.1.1",
"wdio-video-reporter": "^5.1.1"
},
"scripts": {
"wdio": "wdio run ./wdio.conf.js"
}
}
The text was updated successfully, but these errors were encountered: