{"action":"created","issue":{"url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/30","repository_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests","labels_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/30/comments","events_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/30/events","html_url":"https://github.com/mmotkina/mocha-parallel-tests/issues/30","id":152826971,"number":30,"title":"ReferenceError: driver is not defined","user":{"login":"diemol","id":5992658,"avatar_url":"https://avatars.githubusercontent.com/u/5992658?v=3","gravatar_id":"","url":"https://api.github.com/users/diemol","html_url":"https://github.com/diemol","followers_url":"https://api.github.com/users/diemol/followers","following_url":"https://api.github.com/users/diemol/following{/other_user}","gists_url":"https://api.github.com/users/diemol/gists{/gist_id}","starred_url":"https://api.github.com/users/diemol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diemol/subscriptions","organizations_url":"https://api.github.com/users/diemol/orgs","repos_url":"https://api.github.com/users/diemol/repos","events_url":"https://api.github.com/users/diemol/events{/privacy}","received_events_url":"https://api.github.com/users/diemol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-03T17:13:05Z","updated_at":"2016-05-05T11:13:48Z","closed_at":"2016-05-04T09:50:01Z","body":"Hi,\r\n\r\nI am trying to use the `mocha-parallel-tests` npm package with the following test suite:\r\nhttps://github.com/diemol/frontend_testing/tree/master/webdriver-examples-js-parallel\r\n\r\nThe suite works fine when I just use `mocha`, and of course it runs sequentially.\r\n\r\nWhen I try to use `./node_modules/.bin/mocha-parallel-tests test/`, I get the following:\r\n\r\n```\r\n  1) Book hotel and select pay at hotel should leave booking reserved\r\n\r\n  2) Register user should leave new user logged in\r\n\r\n  0 passing (78ms)\r\n  2 failing\r\n\r\n  1)  Book hotel and select pay at hotel should leave booking reserved:\r\n     ReferenceError: driver is not defined\r\n      at Context.<anonymous> (test/hotel.js:15:25)\r\n\r\n  2)  Register user should leave new user logged in:\r\n     ReferenceError: driver is not defined\r\n      at Context.<anonymous> (test/user.js:16:9)\r\n```\r\n\r\nSo it seems that when `mocha` is executed, somehow the path location of the test is ignored or replaced by a new one.\r\n\r\nI am not a JavaScript expert, but maybe the error could be around here? https://github.com/mmotkina/mocha-parallel-tests/blob/master/lib/watcher.js#L109\r\n\r\nIs there a way I can turn on the debug? I tried reading the code but it was not so easy to understand for me.\r\n\r\nI appreciate any help, thanks! \r\n"},"comment":{"url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/comments/217126956","html_url":"https://github.com/mmotkina/mocha-parallel-tests/issues/30#issuecomment-217126956","issue_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/30","id":217126956,"user":{"login":"1999","id":73191,"avatar_url":"https://avatars.githubusercontent.com/u/73191?v=3","gravatar_id":"","url":"https://api.github.com/users/1999","html_url":"https://github.com/1999","followers_url":"https://api.github.com/users/1999/followers","following_url":"https://api.github.com/users/1999/following{/other_user}","gists_url":"https://api.github.com/users/1999/gists{/gist_id}","starred_url":"https://api.github.com/users/1999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1999/subscriptions","organizations_url":"https://api.github.com/users/1999/orgs","repos_url":"https://api.github.com/users/1999/repos","events_url":"https://api.github.com/users/1999/events{/privacy}","received_events_url":"https://api.github.com/users/1999/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T11:13:48Z","updated_at":"2016-05-05T11:13:48Z","body":"No worries, thanks for using mocha-parallel-tests."}}