Webdriver.io

Answered

PHPStorm can run mocha tests which I have used for unit testing and integration testing for my JS application, I am now looking at doing end-to-end testing and I am planning to use webdriverio which works with mocha.

 

But you have to run a `wdio` command rather than a `mocha` command. Is there any way to get the tests to run in PHPStorm?

3 comments
Comment actions Permalink

PHPStorm provides no support for WebDriverIO. But, as all other Node.js applications, it can be run using Node.js run configuration: specify 'node_modules/.bin/wdio' as a Javascript file, passing your configuration file as application parameter.

 

See also https://www.npmjs.com/package/wdio - you may find this library helpful

0
Comment actions Permalink

Thanks, yes wdio is what I am running. I knew you can run the command from Phpstorm, I was just hoping there was a way to get the test results in the testrunner as with normal mocha and phpunit tests, since it is possible to have wdio output the results in teamcity format

0
Comment actions Permalink

<edit> ah OK thanks, I had not seen that library specifically. Thanks

1

Please sign in to leave a comment.