[英]webdriverIO - add junit reporter
I have an issue with adding the junit reporter to wdio.conf.js.我在将 junit 报告器添加到 wdio.conf.js 时遇到问题。
Whenever I try to implement any reporter I'm getting following output and my test is failing:每当我尝试实现任何记者时,我都会得到以下输出,但我的测试失败了:
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 )这就是我将记者添加到 wdio.conf.js ( https://webdriver.io/docs/jenkins.html ) 的方式
reporters: [
'dot',
['junit', {
outputDir: './'
}]
],
I'm quite a beginner to this.我是这个的初学者。
在 wdio.conf.js 中配置之前,您必须首先按照以下链接安装 Junit 报告程序包: https ://webdriver.io/docs/junit-reporter.html#installation
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.