2

I have added the below dev dependencies for mochawesome reports in my webdriver.io framework.

"wdio-dot-reporter": "0.0.10",
"wdio-mochawesome-reporter": "^4.0.0"

My wdio.conf file looks like below

 reporters: [
    'dot',
    [
      'mochawesome',
      {
        outputDir: './Results',
      },
    ],
  ],

When I am trying to run my tests getting the below error:

[0-0] 2021-12-24T09:20:57.498Z ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor
    at BaseReporter.initReporter (/Users/id856795/myproximus-rn/node_modules/@wdio/runner/build/reporter.js:101:20)
    at Array.map (<anonymous>)
    at new BaseReporter (/Users/id856795/myproximus-rn/node_modules/@wdio/runner/build/reporter.js:21:50)
    at Runner.run (/Users/id856795/myproximus-rn/node_modules/@wdio/runner/build/index.js:45:26)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
/Users/id856795/myproximus-rn/node_modules/@wdio/cli/build/interface.js:127
            throw new Error('Could not find job');
            ^

Error: Could not find job
halfer
  • 19,824
  • 17
  • 99
  • 186
  • Make sure you keeping trying things in parallel Dipika, so that if you don't get answers for a time, that time is not wasted. It's OK to cross post the question to another place on the web too (as long as it is on-topic in that place). Don't forget to add links between your questions, so readers can see answers on the other one. – halfer Jan 02 '22 at 10:20
  • Thanks @halfer m trying out few things but still not getting a solution. But yeah let me check on other forums too by posting this query there. Thanks for this info – Dipika Mishra Jan 03 '22 at 08:57
  • Possible duplicate? https://stackoverflow.com/questions/56441806/webdriverio-add-junit-reporter – halfer Jan 03 '22 at 10:10

0 Answers0