سؤال

Is there a way to send nightwatch.js functional test reports into phpstorm?

(I haven't found a selenium plugin, or anything else about this.)

هل كانت مفيدة؟

المحلول

I managed to run nightwatch from phpstorm on windows 7.

  • npm install nightwatch
  • add a nightwatch.json file (set the test directory, and everything else)
  • add a nightwatch.js file with require('nightwatch/bin/runner.js');
  • create a node.js running configuration in phpstorm with the nightwatch.js
  • run your configuration from phpstorm

It should return the same as it does from cli. Sadly nightwatch does not have an itellij reporter, so you have to settle for the cli reporter...

It is possible to start the selenium server before the tests. I just simply added a selenium.bat file to the before launch / external tools with the following content .

start javaw -jar selenium-server-standalone-2.41.0.jar

The selenium server does not allow multiple instances, so you don't have to check whether it is already running...

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top