{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Testing/pulls/comments/44813623","id":44813623,"diff_hunk":"@@ -0,0 +1,33 @@\n+﻿// Copyright (c) .NET Foundation. All rights reserved.\n+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n+\n+using System;\n+using Microsoft.AspNet.Testing.xunit;\n+\n+namespace Microsoft.AspNet.Testing.xunit\n+{\n+    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]\n+    public class EnvironmentVariableSkipConditionAttribute : Attribute, ITestCondition\n+    {\n+        private readonly string _environmentVariableName;\n+        private readonly string _environmentVariableValue;\n+\n+        public EnvironmentVariableSkipConditionAttribute(string environmentVariableName, string environmentVariableValue)","path":"src/Microsoft.AspNet.Testing/xunit/EnvironmentVariableSkipConditionAttribute.cs","position":15,"original_position":15,"commit_id":"eb4fbdbefe1872ec43bd70c5c7b2e50846680c85","original_commit_id":"eb4fbdbefe1872ec43bd70c5c7b2e50846680c85","user":{"login":"troydai","id":1329240,"avatar_url":"https://avatars.githubusercontent.com/u/1329240?v=3","gravatar_id":"","url":"https://api.github.com/users/troydai","html_url":"https://github.com/troydai","followers_url":"https://api.github.com/users/troydai/followers","following_url":"https://api.github.com/users/troydai/following{/other_user}","gists_url":"https://api.github.com/users/troydai/gists{/gist_id}","starred_url":"https://api.github.com/users/troydai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troydai/subscriptions","organizations_url":"https://api.github.com/users/troydai/orgs","repos_url":"https://api.github.com/users/troydai/repos","events_url":"https://api.github.com/users/troydai/events{/privacy}","received_events_url":"https://api.github.com/users/troydai/received_events","type":"User","site_admin":false},"body":"wrap the line. it is suggested to make the code more readable in github code review setting.","created_at":"2015-11-13T18:07:26Z","updated_at":"2015-11-13T18:07:26Z","html_url":"https://github.com/aspnet/Testing/pull/187#discussion_r44813623","pull_request_url":"https://api.github.com/repos/aspnet/Testing/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Testing/pulls/comments/44813623"},"html":{"href":"https://github.com/aspnet/Testing/pull/187#discussion_r44813623"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Testing/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Testing/pulls/187","id":50592691,"html_url":"https://github.com/aspnet/Testing/pull/187","diff_url":"https://github.com/aspnet/Testing/pull/187.diff","patch_url":"https://github.com/aspnet/Testing/pull/187.patch","issue_url":"https://api.github.com/repos/aspnet/Testing/issues/187","number":187,"state":"open","locked":false,"title":"New attribute to skip tests based on an environment variable.","user":{"login":"cesarbs","id":924164,"avatar_url":"https://avatars.githubusercontent.com/u/924164?v=3","gravatar_id":"","url":"https://api.github.com/users/cesarbs","html_url":"https://github.com/cesarbs","followers_url":"https://api.github.com/users/cesarbs/followers","following_url":"https://api.github.com/users/cesarbs/following{/other_user}","gists_url":"https://api.github.com/users/cesarbs/gists{/gist_id}","starred_url":"https://api.github.com/users/cesarbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesarbs/subscriptions","organizations_url":"https://api.github.com/users/cesarbs/orgs","repos_url":"https://api.github.com/users/cesarbs/repos","events_url":"https://api.github.com/users/cesarbs/events{/privacy}","received_events_url":"https://api.github.com/users/cesarbs/received_events","type":"User","site_admin":false},"body":"Attribute to skip tests if an environment variable is set to a given value.\r\n\r\nWe need this to move on with https://github.com/aspnet/KestrelHttpServer/pull/373. Travis currently has issues with IPv6 (https://github.com/travis-ci/travis-ci/issues/4964). We want to be able to skip certain tests on Travis (which defined the TRAVIS environment variable) but not on our CI.\r\n\r\ncc @halter73 @troydai ","created_at":"2015-11-13T01:14:06Z","updated_at":"2015-11-13T18:07:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b33eaf22579b4ba8d4734d98bd588771a8e9fa06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Testing/pulls/187/commits","review_comments_url":"https://api.github.com/repos/aspnet/Testing/pulls/187/comments","review_comment_url":"https://api.github.com/repos/aspnet/Testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/Testing/issues/187/comments","statuses_url":"https://api.github.com/repos/aspnet/Testing/statuses/eb4fbdbefe1872ec43bd70c5c7b2e50846680c85","head":{"label":"aspnet:cesarbs/env-var-skip-condition-attr","ref":"cesarbs/env-var-skip-condition-attr","sha":"eb4fbdbefe1872ec43bd70c5c7b2e50846680c85","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":17147917,"name":"Testing","full_name":"aspnet/Testing","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Testing","description":"Testing infrastructure, including support for xUnit.net and StyleCop.","fork":false,"url":"https://api.github.com/repos/aspnet/Testing","forks_url":"https://api.github.com/repos/aspnet/Testing/forks","keys_url":"https://api.github.com/repos/aspnet/Testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Testing/teams","hooks_url":"https://api.github.com/repos/aspnet/Testing/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Testing/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Testing/events","assignees_url":"https://api.github.com/repos/aspnet/Testing/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Testing/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Testing/tags","blobs_url":"https://api.github.com/repos/aspnet/Testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Testing/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Testing/languages","stargazers_url":"https://api.github.com/repos/aspnet/Testing/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Testing/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Testing/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Testing/subscription","commits_url":"https://api.github.com/repos/aspnet/Testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Testing/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Testing/merges","archive_url":"https://api.github.com/repos/aspnet/Testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Testing/downloads","issues_url":"https://api.github.com/repos/aspnet/Testing/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Testing/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Testing/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Testing/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Testing/releases{/id}","created_at":"2014-02-24T19:31:08Z","updated_at":"2015-11-10T13:33:03Z","pushed_at":"2015-11-13T01:14:07Z","git_url":"git://github.com/aspnet/Testing.git","ssh_url":"git@github.com:aspnet/Testing.git","clone_url":"https://github.com/aspnet/Testing.git","svn_url":"https://github.com/aspnet/Testing","homepage":"","size":2734,"stargazers_count":53,"watchers_count":53,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":6,"forks":29,"open_issues":6,"watchers":53,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"d58fe2ce9aa674f23aa7359a2343430a0deb8e66","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":17147917,"name":"Testing","full_name":"aspnet/Testing","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Testing","description":"Testing infrastructure, including support for xUnit.net and StyleCop.","fork":false,"url":"https://api.github.com/repos/aspnet/Testing","forks_url":"https://api.github.com/repos/aspnet/Testing/forks","keys_url":"https://api.github.com/repos/aspnet/Testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Testing/teams","hooks_url":"https://api.github.com/repos/aspnet/Testing/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Testing/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Testing/events","assignees_url":"https://api.github.com/repos/aspnet/Testing/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Testing/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Testing/tags","blobs_url":"https://api.github.com/repos/aspnet/Testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Testing/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Testing/languages","stargazers_url":"https://api.github.com/repos/aspnet/Testing/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Testing/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Testing/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Testing/subscription","commits_url":"https://api.github.com/repos/aspnet/Testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/Testing/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Testing/merges","archive_url":"https://api.github.com/repos/aspnet/Testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Testing/downloads","issues_url":"https://api.github.com/repos/aspnet/Testing/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Testing/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Testing/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Testing/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Testing/releases{/id}","created_at":"2014-02-24T19:31:08Z","updated_at":"2015-11-10T13:33:03Z","pushed_at":"2015-11-13T01:14:07Z","git_url":"git://github.com/aspnet/Testing.git","ssh_url":"git@github.com:aspnet/Testing.git","clone_url":"https://github.com/aspnet/Testing.git","svn_url":"https://github.com/aspnet/Testing","homepage":"","size":2734,"stargazers_count":53,"watchers_count":53,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":6,"forks":29,"open_issues":6,"watchers":53,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Testing/pulls/187"},"html":{"href":"https://github.com/aspnet/Testing/pull/187"},"issue":{"href":"https://api.github.com/repos/aspnet/Testing/issues/187"},"comments":{"href":"https://api.github.com/repos/aspnet/Testing/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Testing/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Testing/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Testing/statuses/eb4fbdbefe1872ec43bd70c5c7b2e50846680c85"}}}}