webdriverio-community / wdio-video-reporter

Reporter for WebdriverIO that makes videos of failed tests and has optional allure integration
https://webdriver.io/docs/wdio-video-reporter
MIT License
58 stars 47 forks source link

Does not run the project webdriverio 9.0.8 with wdio-video-reporter #402

Closed paulohvalipio closed 6 days ago

paulohvalipio commented 1 month ago

Describe the bug When running the project with wdio-video-reporter com o webdriverio 9.0.8 it displays the message

Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters (https://webdriver.io/docs/customreporter) at validateConfig (file:///C:/project/node_modules/@wdio/config/build/index.js:105:17) at Launcher.run (file:///C:/project/node_modules/@wdio/cli/build/index.js:2164:5)

Log Error: Type check for option "reporters" failed: a reporter should be either a string in the format "wdio--reporter" or a function/class. Please see the docs for more information on custom reporters (https://webdriver.io/docs/customreporter) at validateConfig (file:///C:/project/node_modules/@wdio/config/build/index.js:105:17) at Launcher.run (file:///C:/project/node_modules/@wdio/cli/build/index.js:2164:5)

To Reproduce const video = require('wdio-video-reporter')

reporters: [ [video, { saveAllVideos: true, videoSlowdownMultiplier: 3, videoRenderTimeout: 5, }] ],

Expected behavior The project must be run normally using wdio-video-reporter.

Environment (please complete the following information):

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Govind-Markad commented 1 week ago

Hii @paulohvalipio Have you got any solution?

christian-bromann commented 6 days ago

const video = require('wdio-video-reporter')

reporters: [ [video, { saveAllVideos: true, videoSlowdownMultiplier: 3, videoRenderTimeout: 5, }] ],

This is not how you are suppose to add the reporter to the config, instead just do:

reporters: [
  ['video', {
    saveAllVideos: true,
    videoSlowdownMultiplier: 3,
    videoRenderTimeout: 5,
  }]
],