{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift-evolution/pulls/comments/47428624","id":47428624,"diff_hunk":"@@ -0,0 +1,194 @@\n+# Swift Testing\n+\n+* Authors:\n+  [Max Howell](https://github.com/mxcl),\n+  [Daniel Dunbar](https://github.com/ddunbar),\n+  [Mattt Thompson](https://github.com/mattt)\n+* Status: **Review**\n+* Review Manager: Rick Ballard\n+\n+## Introduction\n+\n+Testing is an essential part of modern software development.\n+Tight integration of testing into the Swift Package Manager\n+will help ensure a stable and reliable packaging ecosystem.\n+\n+## Proposed Solution\n+\n+We propose to extend our conventional package directory layout\n+to accomodate test modules.\n+Any subdirectory of the package root directory named \"Tests\"\n+or any subdirectory of an existing module directory named \"Tests\"\n+will comprise a test module.\n+For example:\n+\n+    Package\n+    ├── Sources\n+    │   └── Foo\n+    │       └──Foo.swift\n+    └── Tests\n+        └── Foo\n+            └── Test.swift\n+\n+Or:\n+\n+    Package\n+    └── Sources\n+        ├── Foo.swift\n+        └── Tests\n+            └── Test.swift\n+\n+Or, for simpler projects:\n+\n+    Package\n+    ├── Sources\n+    │   └── Foo.swift\n+    └── Tests\n+        └── TestFoo.swift\n+        \n+The filename: `TestFoo.swift` is arbituary.","path":"proposals/0008-package-manager-testing.md","position":49,"original_position":49,"commit_id":"e259d379a1cb2f46e6b04fcf97eb8deeaedc2dc8","original_commit_id":"e259d379a1cb2f46e6b04fcf97eb8deeaedc2dc8","user":{"login":"ReadmeCritic","id":15367484,"avatar_url":"https://avatars.githubusercontent.com/u/15367484?v=3","gravatar_id":"","url":"https://api.github.com/users/ReadmeCritic","html_url":"https://github.com/ReadmeCritic","followers_url":"https://api.github.com/users/ReadmeCritic/followers","following_url":"https://api.github.com/users/ReadmeCritic/following{/other_user}","gists_url":"https://api.github.com/users/ReadmeCritic/gists{/gist_id}","starred_url":"https://api.github.com/users/ReadmeCritic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReadmeCritic/subscriptions","organizations_url":"https://api.github.com/users/ReadmeCritic/orgs","repos_url":"https://api.github.com/users/ReadmeCritic/repos","events_url":"https://api.github.com/users/ReadmeCritic/events{/privacy}","received_events_url":"https://api.github.com/users/ReadmeCritic/received_events","type":"User","site_admin":false},"body":"😊","created_at":"2015-12-12T07:16:27Z","updated_at":"2015-12-12T07:16:27Z","html_url":"https://github.com/apple/swift-evolution/pull/51#discussion_r47428624","pull_request_url":"https://api.github.com/repos/apple/swift-evolution/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/comments/47428624"},"html":{"href":"https://github.com/apple/swift-evolution/pull/51#discussion_r47428624"},"pull_request":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/apple/swift-evolution/pulls/51","id":53459864,"html_url":"https://github.com/apple/swift-evolution/pull/51","diff_url":"https://github.com/apple/swift-evolution/pull/51.diff","patch_url":"https://github.com/apple/swift-evolution/pull/51.patch","issue_url":"https://api.github.com/repos/apple/swift-evolution/issues/51","number":51,"state":"open","locked":false,"title":"Proposal for testing support in SwiftPM","user":{"login":"mxcl","id":58962,"avatar_url":"https://avatars.githubusercontent.com/u/58962?v=3","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"body":"Our proposal for how testing infrastructure should operate and be implemented in the package manager.","created_at":"2015-12-12T00:04:41Z","updated_at":"2015-12-12T07:16:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93482d102dc45674e3808d0bc87333fbd27cb68f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift-evolution/pulls/51/commits","review_comments_url":"https://api.github.com/repos/apple/swift-evolution/pulls/51/comments","review_comment_url":"https://api.github.com/repos/apple/swift-evolution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift-evolution/issues/51/comments","statuses_url":"https://api.github.com/repos/apple/swift-evolution/statuses/e259d379a1cb2f46e6b04fcf97eb8deeaedc2dc8","head":{"label":"mxcl:swiftpm-testing","ref":"swiftpm-testing","sha":"e259d379a1cb2f46e6b04fcf97eb8deeaedc2dc8","user":{"login":"mxcl","id":58962,"avatar_url":"https://avatars.githubusercontent.com/u/58962?v=3","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"repo":{"id":47857026,"name":"swift-evolution","full_name":"mxcl/swift-evolution","owner":{"login":"mxcl","id":58962,"avatar_url":"https://avatars.githubusercontent.com/u/58962?v=3","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mxcl/swift-evolution","description":"This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.","fork":true,"url":"https://api.github.com/repos/mxcl/swift-evolution","forks_url":"https://api.github.com/repos/mxcl/swift-evolution/forks","keys_url":"https://api.github.com/repos/mxcl/swift-evolution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mxcl/swift-evolution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mxcl/swift-evolution/teams","hooks_url":"https://api.github.com/repos/mxcl/swift-evolution/hooks","issue_events_url":"https://api.github.com/repos/mxcl/swift-evolution/issues/events{/number}","events_url":"https://api.github.com/repos/mxcl/swift-evolution/events","assignees_url":"https://api.github.com/repos/mxcl/swift-evolution/assignees{/user}","branches_url":"https://api.github.com/repos/mxcl/swift-evolution/branches{/branch}","tags_url":"https://api.github.com/repos/mxcl/swift-evolution/tags","blobs_url":"https://api.github.com/repos/mxcl/swift-evolution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mxcl/swift-evolution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mxcl/swift-evolution/git/refs{/sha}","trees_url":"https://api.github.com/repos/mxcl/swift-evolution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mxcl/swift-evolution/statuses/{sha}","languages_url":"https://api.github.com/repos/mxcl/swift-evolution/languages","stargazers_url":"https://api.github.com/repos/mxcl/swift-evolution/stargazers","contributors_url":"https://api.github.com/repos/mxcl/swift-evolution/contributors","subscribers_url":"https://api.github.com/repos/mxcl/swift-evolution/subscribers","subscription_url":"https://api.github.com/repos/mxcl/swift-evolution/subscription","commits_url":"https://api.github.com/repos/mxcl/swift-evolution/commits{/sha}","git_commits_url":"https://api.github.com/repos/mxcl/swift-evolution/git/commits{/sha}","comments_url":"https://api.github.com/repos/mxcl/swift-evolution/comments{/number}","issue_comment_url":"https://api.github.com/repos/mxcl/swift-evolution/issues/comments{/number}","contents_url":"https://api.github.com/repos/mxcl/swift-evolution/contents/{+path}","compare_url":"https://api.github.com/repos/mxcl/swift-evolution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mxcl/swift-evolution/merges","archive_url":"https://api.github.com/repos/mxcl/swift-evolution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mxcl/swift-evolution/downloads","issues_url":"https://api.github.com/repos/mxcl/swift-evolution/issues{/number}","pulls_url":"https://api.github.com/repos/mxcl/swift-evolution/pulls{/number}","milestones_url":"https://api.github.com/repos/mxcl/swift-evolution/milestones{/number}","notifications_url":"https://api.github.com/repos/mxcl/swift-evolution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mxcl/swift-evolution/labels{/name}","releases_url":"https://api.github.com/repos/mxcl/swift-evolution/releases{/id}","created_at":"2015-12-12T00:01:44Z","updated_at":"2015-12-11T22:16:27Z","pushed_at":"2015-12-12T00:03:48Z","git_url":"git://github.com/mxcl/swift-evolution.git","ssh_url":"git@github.com:mxcl/swift-evolution.git","clone_url":"https://github.com/mxcl/swift-evolution.git","svn_url":"https://github.com/mxcl/swift-evolution","homepage":"","size":83,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apple:master","ref":"master","sha":"d220ae4d6a272e70134d9ee39345d032515a4e00","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":45497910,"name":"swift-evolution","full_name":"apple/swift-evolution","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift-evolution","description":"This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.","fork":false,"url":"https://api.github.com/repos/apple/swift-evolution","forks_url":"https://api.github.com/repos/apple/swift-evolution/forks","keys_url":"https://api.github.com/repos/apple/swift-evolution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift-evolution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift-evolution/teams","hooks_url":"https://api.github.com/repos/apple/swift-evolution/hooks","issue_events_url":"https://api.github.com/repos/apple/swift-evolution/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift-evolution/events","assignees_url":"https://api.github.com/repos/apple/swift-evolution/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift-evolution/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift-evolution/tags","blobs_url":"https://api.github.com/repos/apple/swift-evolution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift-evolution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift-evolution/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift-evolution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift-evolution/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift-evolution/languages","stargazers_url":"https://api.github.com/repos/apple/swift-evolution/stargazers","contributors_url":"https://api.github.com/repos/apple/swift-evolution/contributors","subscribers_url":"https://api.github.com/repos/apple/swift-evolution/subscribers","subscription_url":"https://api.github.com/repos/apple/swift-evolution/subscription","commits_url":"https://api.github.com/repos/apple/swift-evolution/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift-evolution/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift-evolution/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift-evolution/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift-evolution/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift-evolution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift-evolution/merges","archive_url":"https://api.github.com/repos/apple/swift-evolution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift-evolution/downloads","issues_url":"https://api.github.com/repos/apple/swift-evolution/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift-evolution/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift-evolution/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift-evolution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift-evolution/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift-evolution/releases{/id}","created_at":"2015-11-03T21:49:37Z","updated_at":"2015-12-12T06:43:14Z","pushed_at":"2015-12-12T06:49:26Z","git_url":"git://github.com/apple/swift-evolution.git","ssh_url":"git@github.com:apple/swift-evolution.git","clone_url":"https://github.com/apple/swift-evolution.git","svn_url":"https://github.com/apple/swift-evolution","homepage":"","size":156,"stargazers_count":1863,"watchers_count":1863,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":193,"mirror_url":null,"open_issues_count":9,"forks":193,"open_issues":9,"watchers":1863,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/51"},"html":{"href":"https://github.com/apple/swift-evolution/pull/51"},"issue":{"href":"https://api.github.com/repos/apple/swift-evolution/issues/51"},"comments":{"href":"https://api.github.com/repos/apple/swift-evolution/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift-evolution/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift-evolution/statuses/e259d379a1cb2f46e6b04fcf97eb8deeaedc2dc8"}}}}