简体   繁体   English

webdriverIO - 添加 junit 报告器

[英]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.

相关问题 摩卡 JUnit 记者 UnhandledPromiseRejectionWarning - Mocha JUnit reporter UnhandledPromiseRejectionWarning 自定义 JSON Reporter 以显示抓取的数据 - WebdriverIO - Customize JSON Reporter to show Scraped Data - WebdriverIO karma-junit-reporter未得到承认 - karma-junit-reporter not recognized WebdriverIO自定义报告程序-TypeError:无法读取未定义的属性“ write” /“ complete” - WebdriverIO Custom Reporter - TypeError: Cannot read property 'write'/'complete' of undefined WebdriverIO自定义报告程序-TypeError:类扩展值# <Object> 不是构造函数或null - WebdriverIO Custom Reporter - TypeError: Class extends value #<Object> is not a constructor or null 如何创建和使用 Webdriverio v6 自定义报告器? - How create and use a Webdriverio v6 custom reporter? 在来自 Karma-JUnit-Reporter 的 JUnit xml 文件中包含文件名 - Include filename in JUnit xml file from Karma-JUnit-Reporter 如何在摩卡咖啡中添加第三方记者? - How to add third party reporter in mocha? WebdriverIO - 如何向所有请求添加自定义标头 - WebdriverIO - How to add custom headers to all requests 茉莉花的修改后的JUnit xml报告程序提供RangeError:超出最大调用堆栈大小 - Modified JUnit xml reporter for jasmine giving RangeError: Maximum call stack size exceeded
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM