payload: {"action":"created","comment":{"url":"https://api.github.com/repos/microsoft/vstest/pulls/comments/312504660","pull_request_review_id":273172598,"id":312504660,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMjUwNDY2MA==","diff_hunk":"@@ -0,0 +1,352 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+\n+namespace Microsoft.VisualStudio.TestPlatform.Extensions.HtmlLogger\n+{\n+    using Microsoft.VisualStudio.TestPlatform.ObjectModel;\n+    using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client;\n+    using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;\n+    using Microsoft.VisualStudio.TestPlatform.Utilities;\n+    using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers;\n+    using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces;\n+    using System;\n+    using System.Collections.Concurrent;\n+    using System.Collections.Generic;\n+    using System.Diagnostics;\n+    using System.Globalization;\n+    using System.IO;\n+    using System.Linq;\n+    using System.Runtime.Serialization;\n+    using System.Xml.Xsl;\n+    using HtmlResource = Resources.Resources;\n+    using HtmlLoggerConstants = Microsoft.TestPlatform.Extensions.HtmlLogger.Utility.Constants;\n+\n+    /// <summary>\n+    /// Logger for generating Html log\n+    /// </summary>\n+    [FriendlyName(HtmlLoggerConstants.FriendlyName)]\n+    [ExtensionUri(HtmlLoggerConstants.ExtensionUri)]\n+    public class Htmllogger : ITestLoggerWithParameters\n+    {\n+        private IFileHelper filehelper;\n+        private XmlObjectSerializer xmlSerializer;\n+        private IHtmlTransformer htmlTransformer;\n+        private string fileName;\n+        private Dictionary<string, string> parametersDictionary;\n+\n+        public Htmllogger()\n+        : this(new FileHelper(), new HtmlTransformer(), new DataContractSerializer(typeof(TestResults)))\n+        {\n+        }\n+\n+        public Htmllogger(IFileHelper filehelper, IHtmlTransformer htmlTransformer, XmlObjectSerializer dataContractSerializer)\n+        {\n+            this.filehelper = filehelper;\n+            this.htmlTransformer = htmlTransformer;\n+            this.xmlSerializer = dataContractSerializer;\n+        }\n+\n+        public string FilePath { get; private set; }\n+        /// <summary>\n+        /// Gets the directory under which default html file and test results attachements should be saved.\n+        /// </summary>\n+        public string TestResultsDirPath { get; private set; }\n+\n+        /// <summary>\n+        /// Total Results are stored in sequential order\n+        /// </summary>\n+        /// <returns></returns>\n+        public ConcurrentDictionary<Guid, TestResult> Results { get; private set; }\n+\n+        /// <summary>\n+        /// TestResults Stores all the Summary and the details of evrey Results in Hiearachial order.\n+        /// </summary>\n+        public TestResults TestResults { get; private set; }\n+\n+        /// <summary>\n+        /// Total Passed Tests in the TestResults\n+        /// </summary>\n+        public int PassedTests { get; private set; }\n+\n+        /// <summary>\n+        /// Total FailedTests in the Results\n+        /// </summary>\n+        public int FailedTests { get; private set; }\n+\n+        /// <summary>\n+        /// Total Tests in the Results\n+        /// </summary>\n+        public int TotalTests { get; private set; }\n+\n+        /// <summary>\n+        /// Total SkippedTests in the Results\n+        /// </summary>\n+        public int SkippedTests { get; private set; }\n+        public string xmlFilePath { get; private set; }","path":"src/Microsoft.TestPlatform.Extensions.HtmlLogger/HtmlLogger.cs","position":85,"original_position":85,"commit_id":"62011eeb81ae4a18dd5dca9549ae75af2568f16f","original_commit_id":"62011eeb81ae4a18dd5dca9549ae75af2568f16f","user":{"login":"mayankbansal018","id":24792973,"node_id":"MDQ6VXNlcjI0NzkyOTcz","avatar_url":"https://avatars1.githubusercontent.com/u/24792973?v=4","gravatar_id":"","url":"https://api.github.com/users/mayankbansal018","html_url":"https://github.com/mayankbansal018","followers_url":"https://api.github.com/users/mayankbansal018/followers","following_url":"https://api.github.com/users/mayankbansal018/following{/other_user}","gists_url":"https://api.github.com/users/mayankbansal018/gists{/gist_id}","starred_url":"https://api.github.com/users/mayankbansal018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayankbansal018/subscriptions","organizations_url":"https://api.github.com/users/mayankbansal018/orgs","repos_url":"https://api.github.com/users/mayankbansal018/repos","events_url":"https://api.github.com/users/mayankbansal018/events{/privacy}","received_events_url":"https://api.github.com/users/mayankbansal018/received_events","type":"User","site_admin":false},"body":">xmlFilePath [](start = 22, length = 11)\r\n\r\nPublic properties should Start with Capital","created_at":"2019-08-09T14:26:56Z","updated_at":"2019-08-09T14:26:56Z","html_url":"https://github.com/microsoft/vstest/pull/2103#discussion_r312504660","pull_request_url":"https://api.github.com/repos/microsoft/vstest/pulls/2103","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/microsoft/vstest/pulls/comments/312504660"},"html":{"href":"https://github.com/microsoft/vstest/pull/2103#discussion_r312504660"},"pull_request":{"href":"https://api.github.com/repos/microsoft/vstest/pulls/2103"}}},"pull_request":{"url":"https://api.github.com/repos/microsoft/vstest/pulls/2103","id":302009807,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAyMDA5ODA3","html_url":"https://github.com/microsoft/vstest/pull/2103","diff_url":"https://github.com/microsoft/vstest/pull/2103.diff","patch_url":"https://github.com/microsoft/vstest/pull/2103.patch","issue_url":"https://api.github.com/repos/microsoft/vstest/issues/2103","number":2103,"state":"open","locked":false,"title":"[Draft] Html logger","user":{"login":"hvinett","id":39301309,"node_id":"MDQ6VXNlcjM5MzAxMzA5","avatar_url":"https://avatars0.githubusercontent.com/u/39301309?v=4","gravatar_id":"","url":"https://api.github.com/users/hvinett","html_url":"https://github.com/hvinett","followers_url":"https://api.github.com/users/hvinett/followers","following_url":"https://api.github.com/users/hvinett/following{/other_user}","gists_url":"https://api.github.com/users/hvinett/gists{/gist_id}","starred_url":"https://api.github.com/users/hvinett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvinett/subscriptions","organizations_url":"https://api.github.com/users/hvinett/orgs","repos_url":"https://api.github.com/users/hvinett/repos","events_url":"https://api.github.com/users/hvinett/events{/privacy}","received_events_url":"https://api.github.com/users/hvinett/received_events","type":"User","site_admin":false},"body":"## Description\r\nAdding the html logger, which would output the test results in the html format.\r\n\r\n## Related issue\r\nhttps://github.com/microsoft/vstest/issues/2065\r\n\r\n- [x] Add Unit Tests\r\n- [x] Add docs for the public methods\r\n- [ ] Add exception handling\r\n- [ ] Add logging\r\n","created_at":"2019-07-29T10:38:38Z","updated_at":"2019-08-09T14:26:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16508eedf52c5b932fb9280a4c3517eb0d2ae3b3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/microsoft/vstest/pulls/2103/commits","review_comments_url":"https://api.github.com/repos/microsoft/vstest/pulls/2103/comments","review_comment_url":"https://api.github.com/repos/microsoft/vstest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/microsoft/vstest/issues/2103/comments","statuses_url":"https://api.github.com/repos/microsoft/vstest/statuses/62011eeb81ae4a18dd5dca9549ae75af2568f16f","head":{"label":"hvinett:HtmlLogger","ref":"HtmlLogger","sha":"62011eeb81ae4a18dd5dca9549ae75af2568f16f","user":{"login":"hvinett","id":39301309,"node_id":"MDQ6VXNlcjM5MzAxMzA5","avatar_url":"https://avatars0.githubusercontent.com/u/39301309?v=4","gravatar_id":"","url":"https://api.github.com/users/hvinett","html_url":"https://github.com/hvinett","followers_url":"https://api.github.com/users/hvinett/followers","following_url":"https://api.github.com/users/hvinett/following{/other_user}","gists_url":"https://api.github.com/users/hvinett/gists{/gist_id}","starred_url":"https://api.github.com/users/hvinett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvinett/subscriptions","organizations_url":"https://api.github.com/users/hvinett/orgs","repos_url":"https://api.github.com/users/hvinett/repos","events_url":"https://api.github.com/users/hvinett/events{/privacy}","received_events_url":"https://api.github.com/users/hvinett/received_events","type":"User","site_admin":false},"repo":{"id":193865279,"node_id":"MDEwOlJlcG9zaXRvcnkxOTM4NjUyNzk=","name":"vstest","full_name":"hvinett/vstest","private":false,"owner":{"login":"hvinett","id":39301309,"node_id":"MDQ6VXNlcjM5MzAxMzA5","avatar_url":"https://avatars0.githubusercontent.com/u/39301309?v=4","gravatar_id":"","url":"https://api.github.com/users/hvinett","html_url":"https://github.com/hvinett","followers_url":"https://api.github.com/users/hvinett/followers","following_url":"https://api.github.com/users/hvinett/following{/other_user}","gists_url":"https://api.github.com/users/hvinett/gists{/gist_id}","starred_url":"https://api.github.com/users/hvinett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvinett/subscriptions","organizations_url":"https://api.github.com/users/hvinett/orgs","repos_url":"https://api.github.com/users/hvinett/repos","events_url":"https://api.github.com/users/hvinett/events{/privacy}","received_events_url":"https://api.github.com/users/hvinett/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hvinett/vstest","description":"Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.","fork":true,"url":"https://api.github.com/repos/hvinett/vstest","forks_url":"https://api.github.com/repos/hvinett/vstest/forks","keys_url":"https://api.github.com/repos/hvinett/vstest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hvinett/vstest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hvinett/vstest/teams","hooks_url":"https://api.github.com/repos/hvinett/vstest/hooks","issue_events_url":"https://api.github.com/repos/hvinett/vstest/issues/events{/number}","events_url":"https://api.github.com/repos/hvinett/vstest/events","assignees_url":"https://api.github.com/repos/hvinett/vstest/assignees{/user}","branches_url":"https://api.github.com/repos/hvinett/vstest/branches{/branch}","tags_url":"https://api.github.com/repos/hvinett/vstest/tags","blobs_url":"https://api.github.com/repos/hvinett/vstest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hvinett/vstest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hvinett/vstest/git/refs{/sha}","trees_url":"https://api.github.com/repos/hvinett/vstest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hvinett/vstest/statuses/{sha}","languages_url":"https://api.github.com/repos/hvinett/vstest/languages","stargazers_url":"https://api.github.com/repos/hvinett/vstest/stargazers","contributors_url":"https://api.github.com/repos/hvinett/vstest/contributors","subscribers_url":"https://api.github.com/repos/hvinett/vstest/subscribers","subscription_url":"https://api.github.com/repos/hvinett/vstest/subscription","commits_url":"https://api.github.com/repos/hvinett/vstest/commits{/sha}","git_commits_url":"https://api.github.com/repos/hvinett/vstest/git/commits{/sha}","comments_url":"https://api.github.com/repos/hvinett/vstest/comments{/number}","issue_comment_url":"https://api.github.com/repos/hvinett/vstest/issues/comments{/number}","contents_url":"https://api.github.com/repos/hvinett/vstest/contents/{+path}","compare_url":"https://api.github.com/repos/hvinett/vstest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hvinett/vstest/merges","archive_url":"https://api.github.com/repos/hvinett/vstest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hvinett/vstest/downloads","issues_url":"https://api.github.com/repos/hvinett/vstest/issues{/number}","pulls_url":"https://api.github.com/repos/hvinett/vstest/pulls{/number}","milestones_url":"https://api.github.com/repos/hvinett/vstest/milestones{/number}","notifications_url":"https://api.github.com/repos/hvinett/vstest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hvinett/vstest/labels{/name}","releases_url":"https://api.github.com/repos/hvinett/vstest/releases{/id}","deployments_url":"https://api.github.com/repos/hvinett/vstest/deployments","created_at":"2019-06-26T08:41:56Z","updated_at":"2019-06-26T08:42:02Z","pushed_at":"2019-08-09T10:12:02Z","git_url":"git://github.com/hvinett/vstest.git","ssh_url":"git@github.com:hvinett/vstest.git","clone_url":"https://github.com/hvinett/vstest.git","svn_url":"https://github.com/hvinett/vstest","homepage":"","size":12400,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"microsoft:master","ref":"master","sha":"2d36ed96fad8f1f5858d24034cadc5f22cd8529a","user":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/microsoft","html_url":"https://github.com/microsoft","followers_url":"https://api.github.com/users/microsoft/followers","following_url":"https://api.github.com/users/microsoft/following{/other_user}","gists_url":"https://api.github.com/users/microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microsoft/subscriptions","organizations_url":"https://api.github.com/users/microsoft/orgs","repos_url":"https://api.github.com/users/microsoft/repos","events_url":"https://api.github.com/users/microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":62774726,"node_id":"MDEwOlJlcG9zaXRvcnk2Mjc3NDcyNg==","name":"vstest","full_name":"microsoft/vstest","private":false,"owner":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/microsoft","html_url":"https://github.com/microsoft","followers_url":"https://api.github.com/users/microsoft/followers","following_url":"https://api.github.com/users/microsoft/following{/other_user}","gists_url":"https://api.github.com/users/microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microsoft/subscriptions","organizations_url":"https://api.github.com/users/microsoft/orgs","repos_url":"https://api.github.com/users/microsoft/repos","events_url":"https://api.github.com/users/microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/microsoft/vstest","description":"Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.","fork":false,"url":"https://api.github.com/repos/microsoft/vstest","forks_url":"https://api.github.com/repos/microsoft/vstest/forks","keys_url":"https://api.github.com/repos/microsoft/vstest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/microsoft/vstest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/microsoft/vstest/teams","hooks_url":"https://api.github.com/repos/microsoft/vstest/hooks","issue_events_url":"https://api.github.com/repos/microsoft/vstest/issues/events{/number}","events_url":"https://api.github.com/repos/microsoft/vstest/events","assignees_url":"https://api.github.com/repos/microsoft/vstest/assignees{/user}","branches_url":"https://api.github.com/repos/microsoft/vstest/branches{/branch}","tags_url":"https://api.github.com/repos/microsoft/vstest/tags","blobs_url":"https://api.github.com/repos/microsoft/vstest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/microsoft/vstest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/microsoft/vstest/git/refs{/sha}","trees_url":"https://api.github.com/repos/microsoft/vstest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/microsoft/vstest/statuses/{sha}","languages_url":"https://api.github.com/repos/microsoft/vstest/languages","stargazers_url":"https://api.github.com/repos/microsoft/vstest/stargazers","contributors_url":"https://api.github.com/repos/microsoft/vstest/contributors","subscribers_url":"https://api.github.com/repos/microsoft/vstest/subscribers","subscription_url":"https://api.github.com/repos/microsoft/vstest/subscription","commits_url":"https://api.github.com/repos/microsoft/vstest/commits{/sha}","git_commits_url":"https://api.github.com/repos/microsoft/vstest/git/commits{/sha}","comments_url":"https://api.github.com/repos/microsoft/vstest/comments{/number}","issue_comment_url":"https://api.github.com/repos/microsoft/vstest/issues/comments{/number}","contents_url":"https://api.github.com/repos/microsoft/vstest/contents/{+path}","compare_url":"https://api.github.com/repos/microsoft/vstest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/microsoft/vstest/merges","archive_url":"https://api.github.com/repos/microsoft/vstest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/microsoft/vstest/downloads","issues_url":"https://api.github.com/repos/microsoft/vstest/issues{/number}","pulls_url":"https://api.github.com/repos/microsoft/vstest/pulls{/number}","milestones_url":"https://api.github.com/repos/microsoft/vstest/milestones{/number}","notifications_url":"https://api.github.com/repos/microsoft/vstest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/microsoft/vstest/labels{/name}","releases_url":"https://api.github.com/repos/microsoft/vstest/releases{/id}","deployments_url":"https://api.github.com/repos/microsoft/vstest/deployments","created_at":"2016-07-07T04:18:58Z","updated_at":"2019-08-09T12:20:10Z","pushed_at":"2019-08-09T10:12:03Z","git_url":"git://github.com/microsoft/vstest.git","ssh_url":"git@github.com:microsoft/vstest.git","clone_url":"https://github.com/microsoft/vstest.git","svn_url":"https://github.com/microsoft/vstest","homepage":"","size":12295,"stargazers_count":497,"watchers_count":497,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":155,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":128,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":155,"open_issues":128,"watchers":497,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/microsoft/vstest/pulls/2103"},"html":{"href":"https://github.com/microsoft/vstest/pull/2103"},"issue":{"href":"https://api.github.com/repos/microsoft/vstest/issues/2103"},"comments":{"href":"https://api.github.com/repos/microsoft/vstest/issues/2103/comments"},"review_comments":{"href":"https://api.github.com/repos/microsoft/vstest/pulls/2103/comments"},"review_comment":{"href":"https://api.github.com/repos/microsoft/vstest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/microsoft/vstest/pulls/2103/commits"},"statuses":{"href":"https://api.github.com/repos/microsoft/vstest/statuses/62011eeb81ae4a18dd5dca9549ae75af2568f16f"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"mayankbansal018"}}