{"action":"created","issue":{"url":"https://api.github.com/repos/jls/nightwatch-html-reporter/issues/31","repository_url":"https://api.github.com/repos/jls/nightwatch-html-reporter","labels_url":"https://api.github.com/repos/jls/nightwatch-html-reporter/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/jls/nightwatch-html-reporter/issues/31/comments","events_url":"https://api.github.com/repos/jls/nightwatch-html-reporter/issues/31/events","html_url":"https://github.com/jls/nightwatch-html-reporter/issues/31","id":156962744,"number":31,"title":"Allowing separate report file at parallel execution","user":{"login":"nemethgabor83","id":18553224,"avatar_url":"https://avatars.githubusercontent.com/u/18553224?v=3","gravatar_id":"","url":"https://api.github.com/users/nemethgabor83","html_url":"https://github.com/nemethgabor83","followers_url":"https://api.github.com/users/nemethgabor83/followers","following_url":"https://api.github.com/users/nemethgabor83/following{/other_user}","gists_url":"https://api.github.com/users/nemethgabor83/gists{/gist_id}","starred_url":"https://api.github.com/users/nemethgabor83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemethgabor83/subscriptions","organizations_url":"https://api.github.com/users/nemethgabor83/orgs","repos_url":"https://api.github.com/users/nemethgabor83/repos","events_url":"https://api.github.com/users/nemethgabor83/events{/privacy}","received_events_url":"https://api.github.com/users/nemethgabor83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-26T11:29:08Z","updated_at":"2016-06-10T06:32:29Z","closed_at":null,"body":"Hi James,\r\n\r\nif I execute nightwatch tests in parallel the report html will be overwritten, and the report html contains only result of the last testsuite. Is this a configuration issue, or it is not implemented in the nightwatch-html-reporter.\r\nI would introduce a parameter as a constructor of HtmlReporter, for example: separatedReport, which can be true or false. If it is true, every testsuite would had its own report file. For example: the reporter.js would contain something like this:\r\n\r\n````\r\nlogger.setLevel(opts.logLevel);\r\n\r\n  this.fn = function(results, done) {\r\n    var testName = '';\r\n    console.log(results.modules);\r\n    var oneObject = Object.keys(results.modules);\r\n    console.log(oneObject); \r\n    oneObject.forEach(function (nextLevel) {\r\n        testName = nextLevel;\r\n    })\r\n    if (opts.separateReportPerSuite) {\r\n        opts.reportFilename = opts.reportFilename.replace(/\\.html/,'') + '-' + testName.replace(/\\\\/g,'-');\r\n    }\r\n    opts.reportFilename = opts.reportFilename + '.html'\r\n````\r\n\r\nWould you approve this? Do you have any other idea?\r\nThank you"},"comment":{"url":"https://api.github.com/repos/jls/nightwatch-html-reporter/issues/comments/225104214","html_url":"https://github.com/jls/nightwatch-html-reporter/issues/31#issuecomment-225104214","issue_url":"https://api.github.com/repos/jls/nightwatch-html-reporter/issues/31","id":225104214,"user":{"login":"nemethgabor83","id":18553224,"avatar_url":"https://avatars.githubusercontent.com/u/18553224?v=3","gravatar_id":"","url":"https://api.github.com/users/nemethgabor83","html_url":"https://github.com/nemethgabor83","followers_url":"https://api.github.com/users/nemethgabor83/followers","following_url":"https://api.github.com/users/nemethgabor83/following{/other_user}","gists_url":"https://api.github.com/users/nemethgabor83/gists{/gist_id}","starred_url":"https://api.github.com/users/nemethgabor83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemethgabor83/subscriptions","organizations_url":"https://api.github.com/users/nemethgabor83/orgs","repos_url":"https://api.github.com/users/nemethgabor83/repos","events_url":"https://api.github.com/users/nemethgabor83/events{/privacy}","received_events_url":"https://api.github.com/users/nemethgabor83/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T06:32:29Z","updated_at":"2016-06-10T06:32:29Z","body":"Hi James, I've created a pull request with this solution."}}
{"actor":{"display_login":"nemethgabor83"}}