Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make reporter compatible with WebdriverIO v5 #11

Open
christian-bromann opened this issue Jan 8, 2019 · 0 comments
Open

Make reporter compatible with WebdriverIO v5 #11

christian-bromann opened this issue Jan 8, 2019 · 0 comments

Comments

@christian-bromann
Copy link

Hola 馃憢

WebdriverIO released v5 around Christmas, see also this blogpost. To make this reporter usable with the new version there are some small adjustments necessary. There are some minor changes that need to be made. You can find a general overview here. Most important ones to point out are:

  • set "@wdio/cli": "^5.0.0" as peerDependency
  • let the reporter extend from @wdio/reporter
  • change the constructor so it calls super()
    Note: if your reporter is designed to report to stdout have it the following way:
    /**
     * make reporter to write to output stream by default
     */
    options = Object.assign(options, { stdout: true });
    super(options)
    if your reporter should rather report to a file per default just call:
    super(options)
  • all file or stdout messages need to be propagated by this.write("my log message")

Feel free to drop by the webdriverio/v5 support channel in case you need support.

Thanks so much for contributing to the WebdriverIO community. We really appreciate it 馃檹 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant