Tag: gruntjs nightwatch.js

当用Grunt启动Nightwatch时,网站服务器未启动

我使用Nightwatch.js为网站运行系统testing。 我想通过grunt运行它们来自动化testing。 我的Gruntfile包含这些行: … var nightwatch = require('nightwatch'); nightwatch.initGrunt(grunt); … nightwatch: { options: { standalone: true, test_settings: { "default": { "launch_url": "http://localhost", "selenium_port": 4444, "selenium_host": "localhost", "silent": true, "screenshots": { "enabled": false, "path": "" }, "desiredCapabilities": { "browserName": "firefox", "javascriptEnabled": true, "acceptSslCerts": true } } }, "chrome" : { "desiredCapabilities": { "browserName": "chrome", "javascriptEnabled": true, […]