{"action":"created","issue":{"url":"https://api.github.com/repos/bhovhannes/junit-report-merger/issues/8","repository_url":"https://api.github.com/repos/bhovhannes/junit-report-merger","labels_url":"https://api.github.com/repos/bhovhannes/junit-report-merger/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/bhovhannes/junit-report-merger/issues/8/comments","events_url":"https://api.github.com/repos/bhovhannes/junit-report-merger/issues/8/events","html_url":"https://github.com/bhovhannes/junit-report-merger/issues/8","id":157911829,"node_id":"MDU6SXNzdWUxNTc5MTE4Mjk=","number":8,"title":"Empty file as result of mergeFiles","user":{"login":"Xotabu4","id":3033972,"node_id":"MDQ6VXNlcjMwMzM5NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/3033972?v=4","gravatar_id":"","url":"https://api.github.com/users/Xotabu4","html_url":"https://github.com/Xotabu4","followers_url":"https://api.github.com/users/Xotabu4/followers","following_url":"https://api.github.com/users/Xotabu4/following{/other_user}","gists_url":"https://api.github.com/users/Xotabu4/gists{/gist_id}","starred_url":"https://api.github.com/users/Xotabu4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xotabu4/subscriptions","organizations_url":"https://api.github.com/users/Xotabu4/orgs","repos_url":"https://api.github.com/users/Xotabu4/repos","events_url":"https://api.github.com/users/Xotabu4/events{/privacy}","received_events_url":"https://api.github.com/users/Xotabu4/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-01T13:51:06Z","updated_at":"2018-06-27T16:33:40Z","closed_at":"2016-06-01T15:34:22Z","author_association":"NONE","body":"Hi, trying to solve issue with jasmine 2.0 and protractor. When shardingTestFiles with protractor - https://github.com/larrymyers/jasmine-reporters/blob/master/src/junit_reporter.js produces separate xml for each file.\n\nTrying to combine then together with this code:\n\n``` javascript\n\"use strict\";\n\nvar xmlMerger = require('junit-report-merger');\nvar fs = require('fs');\nvar filesList = fs.readdirSync('../testresults');\nfilesList = filesList.filter(xmlfile=> {\n    return xmlfile.includes('store_results_');\n});\nconsole.log(filesList);\n\nxmlMerger.mergeFiles('../testresults/store_results.xml', [ 'store_results_test.js.xml',\n    'store_results_test2.js.xml',\n    'store_results_test3.js.xml' ], (result)=> console.log('OLOLO MERGED!'));\n```\n\nAs you can see files content is pretty simple - trying on mocked data:\n\n``` xml\nstore_results_test.js.xml\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<testsuites>\n <testsuite name=\"test.js\" timestamp=\"2016-06-01T16:27:47\" hostname=\"localhost\" time=\"2.193\" errors=\"0\" tests=\"4\" skipped=\"0\" disabled=\"0\" failures=\"0\">\n  <testcase classname=\"test.js\" name=\"1\" time=\"1.745\" />\n  <testcase classname=\"test.js\" name=\"2\" time=\"0.15\" />\n  <testcase classname=\"test.js\" name=\"3\" time=\"0.147\" />\n  <testcase classname=\"test.js\" name=\"4\" time=\"0.147\" />\n </testsuite>\n</testsuites>\n\nstore_results_test2.js.xml\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<testsuites>\n <testsuite name=\"test2.js\" timestamp=\"2016-06-01T16:27:51\" hostname=\"localhost\" time=\"2.171\" errors=\"0\" tests=\"4\" skipped=\"0\" disabled=\"0\" failures=\"0\">\n  <testcase classname=\"test2.js\" name=\"1\" time=\"1.731\" />\n  <testcase classname=\"test2.js\" name=\"2\" time=\"0.15\" />\n  <testcase classname=\"test2.js\" name=\"3\" time=\"0.145\" />\n  <testcase classname=\"test2.js\" name=\"4\" time=\"0.143\" />\n </testsuite>\n</testsuites>\n\n\nstore_results_test3.js.xml\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<testsuites>\n <testsuite name=\"test3.js\" timestamp=\"2016-06-01T16:27:54\" hostname=\"localhost\" time=\"2.17\" errors=\"0\" tests=\"4\" skipped=\"0\" disabled=\"0\" failures=\"0\">\n  <testcase classname=\"test3.js\" name=\"1\" time=\"1.725\" />\n  <testcase classname=\"test3.js\" name=\"2\" time=\"0.151\" />\n  <testcase classname=\"test3.js\" name=\"3\" time=\"0.147\" />\n  <testcase classname=\"test3.js\" name=\"4\" time=\"0.144\" />\n </testsuite>\n</testsuites>\n```\n\nAs a result of executing code above - empty store_results.xml file, and callback (cb) is **NOT** called (no output to console, and no error messages in console)\n\nIt looks like issue of code in the library. Any help?\n"},"comment":{"url":"https://api.github.com/repos/bhovhannes/junit-report-merger/issues/comments/400744354","html_url":"https://github.com/bhovhannes/junit-report-merger/issues/8#issuecomment-400744354","issue_url":"https://api.github.com/repos/bhovhannes/junit-report-merger/issues/8","id":400744354,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDc0NDM1NA==","user":{"login":"hleise","id":10748415,"node_id":"MDQ6VXNlcjEwNzQ4NDE1","avatar_url":"https://avatars1.githubusercontent.com/u/10748415?v=4","gravatar_id":"","url":"https://api.github.com/users/hleise","html_url":"https://github.com/hleise","followers_url":"https://api.github.com/users/hleise/followers","following_url":"https://api.github.com/users/hleise/following{/other_user}","gists_url":"https://api.github.com/users/hleise/gists{/gist_id}","starred_url":"https://api.github.com/users/hleise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hleise/subscriptions","organizations_url":"https://api.github.com/users/hleise/orgs","repos_url":"https://api.github.com/users/hleise/repos","events_url":"https://api.github.com/users/hleise/events{/privacy}","received_events_url":"https://api.github.com/users/hleise/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T16:33:40Z","updated_at":"2018-06-27T16:33:40Z","author_association":"NONE","body":"@Xotabu4 \r\nThat worked, thanks!"}}
{"actor":{"display_login":"hleise"}}