{"action":"created","issue":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1567","repository_url":"https://api.github.com/repos/nightwatchjs/nightwatch","labels_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1567/labels{/name}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1567/comments","events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1567/events","html_url":"https://github.com/nightwatchjs/nightwatch/issues/1567","id":254433570,"number":1567,"title":"Mocha unable to run with Nightwatch","user":{"login":"ZehuaZhang","id":15708284,"avatar_url":"https://avatars1.githubusercontent.com/u/15708284?v=4","gravatar_id":"","url":"https://api.github.com/users/ZehuaZhang","html_url":"https://github.com/ZehuaZhang","followers_url":"https://api.github.com/users/ZehuaZhang/followers","following_url":"https://api.github.com/users/ZehuaZhang/following{/other_user}","gists_url":"https://api.github.com/users/ZehuaZhang/gists{/gist_id}","starred_url":"https://api.github.com/users/ZehuaZhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZehuaZhang/subscriptions","organizations_url":"https://api.github.com/users/ZehuaZhang/orgs","repos_url":"https://api.github.com/users/ZehuaZhang/repos","events_url":"https://api.github.com/users/ZehuaZhang/events{/privacy}","received_events_url":"https://api.github.com/users/ZehuaZhang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T18:52:53Z","updated_at":"2017-09-07T19:42:27Z","closed_at":null,"author_association":"NONE","body":"I'm running mocha with nighwatch.js, selenium and chromedriver\r\n\r\nI'm able to run with describe, and it, but I'm making a dynamic tests, so I need use the following way to invoke, but I'm unable to get mocha running this way with nightwatch\r\n\r\n```\r\n\"use strict\";\r\n\r\nvar nightwatch = require('nightwatch');\r\n\r\nvar Mocha = require('mocha');\r\nvar Test = Mocha.Test;\r\nvar Suite = Mocha.Suite;\r\n\r\nvar mocha = new Mocha();\r\nvar suite = Suite.create(mocha.suite, 'Search Box');\r\n\r\nsuite.addTest(new Test('I\\'m a dynamic test', function (done) {\r\n    var client = nightwatch.initClient({\r\n        silent : true\r\n    });\r\n    var browser = client.api();\r\n    browser.url(browser.launch_url);\r\n    client.start(done);\r\n}));\r\n\r\nmocha.run();\r\n```\r\nHere's the error\r\n\r\n```\r\nStarting selenium server... started - PID: 122624\r\n\r\n0 passing (0ms)\r\n\r\n  Search Box\r\n    1) I'm a dynamic test\r\n\r\nThere was an error while starting the test runner:\r\n\r\nError: Uncaught, unspecified \"error\" event. ([object Object])\r\n    at Nightwatch.<anonymous> (E:\\gitwork\\AAPT-SPZA\\src\\frontEnd\\node_modules\\nightwatch\\lib\\runner\\clientmanager.js:66:1\r\n    at HttpRequest.<anonymous> (E:\\gitwork\\AAPT-SPZA\\src\\frontEnd\\node_modules\\nightwatch\\lib\\index.js:501:10)\r\n    at ClientRequest.<anonymous> (E:\\gitwork\\AAPT-SPZA\\src\\frontEnd\\node_modules\\nightwatch\\lib\\http\\request.js:174:12)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/comments/327903220","html_url":"https://github.com/nightwatchjs/nightwatch/issues/1567#issuecomment-327903220","issue_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/1567","id":327903220,"user":{"login":"promo-gpsw","id":28890765,"avatar_url":"https://avatars2.githubusercontent.com/u/28890765?v=4","gravatar_id":"","url":"https://api.github.com/users/promo-gpsw","html_url":"https://github.com/promo-gpsw","followers_url":"https://api.github.com/users/promo-gpsw/followers","following_url":"https://api.github.com/users/promo-gpsw/following{/other_user}","gists_url":"https://api.github.com/users/promo-gpsw/gists{/gist_id}","starred_url":"https://api.github.com/users/promo-gpsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/promo-gpsw/subscriptions","organizations_url":"https://api.github.com/users/promo-gpsw/orgs","repos_url":"https://api.github.com/users/promo-gpsw/repos","events_url":"https://api.github.com/users/promo-gpsw/events{/privacy}","received_events_url":"https://api.github.com/users/promo-gpsw/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T19:42:27Z","updated_at":"2017-09-07T19:42:27Z","author_association":"NONE","body":"I think we resolved this on stackoverflow already. We can probably close this issue. https://stackoverflow.com/questions/45988237/mocha-unable-to-run-with-nightwatch/46077141#46077141"}}
{"actor":{"display_login":"promo-gpsw"}}