1

I have an issure according to adding the junit reporter to wdio.conf.js.

Whenever I try to implement any reporter I'm getting following output and my test is failling:

ERROR @wdio/local-runner: 2019-06-04T10:01:13.337Z
ERROR @wdio/local-runner: 2019-06-04T10:01:13.336Z 
ERROR @wdio/local-runner: Failed launching test session: 
TypeError: ReporterClass is not a constructor at BaseReporter.initReporter (/home/jawar/Project_webdriverio/node_modules/@wdio/runner/build/reporter.js:202:14) at Array.map (<anonymous>)

This is how I add the reporter to the wdio.conf.js (https://webdriver.io/docs/jenkins.html)

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

I'm quite a newby and thankful for any help.

Jaw. M.
  • 107
  • 11

1 Answers1

2

You must first install the Junit reporter package as per the following link before you configure it in wdio.conf.js: https://webdriver.io/docs/junit-reporter.html#installation

flash47
  • 23
  • 3