{"action":"created","issue":{"url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/78","repository_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests","labels_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/78/comments","events_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/78/events","html_url":"https://github.com/mmotkina/mocha-parallel-tests/issues/78","id":182594952,"number":78,"title":"Mocha tap reporter throws exception","user":{"login":"aubonpain","id":557641,"avatar_url":"https://avatars.githubusercontent.com/u/557641?v=3","gravatar_id":"","url":"https://api.github.com/users/aubonpain","html_url":"https://github.com/aubonpain","followers_url":"https://api.github.com/users/aubonpain/followers","following_url":"https://api.github.com/users/aubonpain/following{/other_user}","gists_url":"https://api.github.com/users/aubonpain/gists{/gist_id}","starred_url":"https://api.github.com/users/aubonpain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aubonpain/subscriptions","organizations_url":"https://api.github.com/users/aubonpain/orgs","repos_url":"https://api.github.com/users/aubonpain/repos","events_url":"https://api.github.com/users/aubonpain/events{/privacy}","received_events_url":"https://api.github.com/users/aubonpain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-12T18:12:18Z","updated_at":"2016-10-17T20:34:22Z","closed_at":null,"body":"**Issue:** Specifying \"tap\" as the reporter for mocha-parallel-tests throws a \"TypeError: runner.grepTotal is not a function\" error.\r\n\r\n**Setup:**\r\nRunning selenium webdriver tests using Node, Mocha. Versions:\r\n1. mocha-parallel-tests v1.2.2\r\n2. mocha v3.0.2\r\n3. node v6.6.0\r\n\r\n**Command:** mocha-parallel-tests test/*.js --max-parallel 5 --slow 3000 --reporter tap\r\n_Note:_ Using mocha (not mocha-parallel-tests), I can specify either \"json\", \"tap\", \"spec\", or any other reporter and the tests run fine. Additionally, mocha-parallel-tests can run \"json\" or \"spec\" as the reporter, but fails on using \"tap\".\r\n\r\n**Stack:**\r\nC:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha\\lib\\reporters\\tap.js:27\r\n    var total = runner.grepTotal(runner.suite);\r\n                       ^\r\n\r\nTypeError: runner.grepTotal is not a function\r\n    at Runner.<anonymous> (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha\\lib\\reporters\\tap.js:27:24)\r\n    at emitOne (events.js:101:20)\r\n    at Runner.emit (events.js:188:7)\r\n    at Runner.emit (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha-parallel-tests\\dist\\lib\\runner.js:62:20)\r\n    at Runner.start (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha-parallel-tests\\dist\\lib\\runner.js:73:14)\r\n    at new MochaParallelTests (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha-parallel-tests\\dist\\lib\\reporter.js:128:26)\r\n    at Mocha.run (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha\\lib\\mocha.js:491:18)\r\n    at scheduleMochaRun (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha-parallel-tests\\dist\\lib\\watcher.js:240:30)\r\n    at runTestsRecursive (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha-parallel-tests\\dist\\lib\\watcher.js:302:29)\r\n    at exports.runTests._ref4 (C:\\Users\\foo\\AppData\\Roaming\\npm\\node_modules\\mocha-parallel-tests\\dist\\lib\\watcher.js:338:5)\r\n\r\n\r\nAny help would be much appreciated!"},"comment":{"url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/comments/254325415","html_url":"https://github.com/mmotkina/mocha-parallel-tests/issues/78#issuecomment-254325415","issue_url":"https://api.github.com/repos/mmotkina/mocha-parallel-tests/issues/78","id":254325415,"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-10-17T20:34:22Z","updated_at":"2016-10-17T20:34:22Z","body":"Yes, I meant exactly this, sorry for being not clear. Hopefully the problem is the same for both this and jenkins-related issue."}}
{"actor":{"display_login":"1999"}}