{"action":"created","comment":{"url":"https://api.github.com/repos/infection/infection/pulls/comments/167675509","pull_request_review_id":95928563,"id":167675509,"diff_hunk":"@@ -106,18 +107,38 @@ private function buildDynamicDependencies(InputInterface $input)\n                 );\n \n                 $infectionConfigFile = $c['locator']->locateAnyOf($configPaths);\n-                $dir = \\pathinfo($infectionConfigFile, PATHINFO_DIRNAME);\n+                $configLocation = \\pathinfo($infectionConfigFile, PATHINFO_DIRNAME);\n                 $json = file_get_contents($infectionConfigFile);\n             } catch (\\Exception $e) {\n                 $json = '{}';\n-                $dir = getcwd();\n+                $configLocation = getcwd();\n             }\n \n-            return new InfectionConfig(json_decode($json), $c['filesystem'], $dir);\n+            return new InfectionConfig(json_decode($json), $c['filesystem'], $configLocation);\n         };\n \n-        $this->container['tmp.dir'] = function (Container $c): string {\n-            return $c['tmp.dir.creator']->createAndGet($c['infection.config']->getTmpDir());\n+        $this->container['coverage.path'] = function (Container $c) use ($input): string {\n+            $existingCoveragePath = $this->getExistingCoveragePath($input, $c['infection.config']->getPhpUnitConfigDir());\n+\n+            return $existingCoveragePath ?: $c['tmp.dir'];\n         };\n     }\n+\n+    private function getExistingCoveragePath(InputInterface $input, string $configLocation): string\n+    {\n+        $existingCoveragePath = $input->getOption('coverage');\n+\n+        if ($existingCoveragePath === '') {","path":"src/Console/Application.php","position":38,"original_position":38,"commit_id":"d8738aab22fd22d957a8e8948bd224a30ea63b9f","original_commit_id":"d8738aab22fd22d957a8e8948bd224a30ea63b9f","user":{"login":"sidz","id":1302230,"avatar_url":"https://avatars2.githubusercontent.com/u/1302230?v=4","gravatar_id":"","url":"https://api.github.com/users/sidz","html_url":"https://github.com/sidz","followers_url":"https://api.github.com/users/sidz/followers","following_url":"https://api.github.com/users/sidz/following{/other_user}","gists_url":"https://api.github.com/users/sidz/gists{/gist_id}","starred_url":"https://api.github.com/users/sidz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidz/subscriptions","organizations_url":"https://api.github.com/users/sidz/orgs","repos_url":"https://api.github.com/users/sidz/repos","events_url":"https://api.github.com/users/sidz/events{/privacy}","received_events_url":"https://api.github.com/users/sidz/received_events","type":"User","site_admin":false},"body":"do we need to trim this value?","created_at":"2018-02-12T20:23:55Z","updated_at":"2018-02-12T20:23:55Z","html_url":"https://github.com/infection/infection/pull/176#discussion_r167675509","pull_request_url":"https://api.github.com/repos/infection/infection/pulls/176","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/infection/infection/pulls/comments/167675509"},"html":{"href":"https://github.com/infection/infection/pull/176#discussion_r167675509"},"pull_request":{"href":"https://api.github.com/repos/infection/infection/pulls/176"}}},"pull_request":{"url":"https://api.github.com/repos/infection/infection/pulls/176","id":168474249,"html_url":"https://github.com/infection/infection/pull/176","diff_url":"https://github.com/infection/infection/pull/176.diff","patch_url":"https://github.com/infection/infection/pull/176.patch","issue_url":"https://api.github.com/repos/infection/infection/issues/176","number":176,"state":"open","locked":false,"title":"Use existing coverage reports","user":{"login":"borNfreee","id":3725595,"avatar_url":"https://avatars2.githubusercontent.com/u/3725595?v=4","gravatar_id":"","url":"https://api.github.com/users/borNfreee","html_url":"https://github.com/borNfreee","followers_url":"https://api.github.com/users/borNfreee/followers","following_url":"https://api.github.com/users/borNfreee/following{/other_user}","gists_url":"https://api.github.com/users/borNfreee/gists{/gist_id}","starred_url":"https://api.github.com/users/borNfreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borNfreee/subscriptions","organizations_url":"https://api.github.com/users/borNfreee/orgs","repos_url":"https://api.github.com/users/borNfreee/repos","events_url":"https://api.github.com/users/borNfreee/events{/privacy}","received_events_url":"https://api.github.com/users/borNfreee/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/infection/infection/issues/94\r\n- [x] Allow to provide the path to folder with existing coverage report(s)\r\n- [x] Disable Xdebug for Initial tests run if existing coverage provided\r\n- [x] Documentation (https://github.com/infection/site/pull/20)\n- [x] Reuse coverage on Travis to speed up builds\r\n","created_at":"2018-02-11T21:08:16Z","updated_at":"2018-02-12T20:23:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79ef21940861c2de7c4e54e710db0f89293a1854","assignee":null,"assignees":[],"requested_reviewers":[{"login":"theofidry","id":5175937,"avatar_url":"https://avatars3.githubusercontent.com/u/5175937?v=4","gravatar_id":"","url":"https://api.github.com/users/theofidry","html_url":"https://github.com/theofidry","followers_url":"https://api.github.com/users/theofidry/followers","following_url":"https://api.github.com/users/theofidry/following{/other_user}","gists_url":"https://api.github.com/users/theofidry/gists{/gist_id}","starred_url":"https://api.github.com/users/theofidry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theofidry/subscriptions","organizations_url":"https://api.github.com/users/theofidry/orgs","repos_url":"https://api.github.com/users/theofidry/repos","events_url":"https://api.github.com/users/theofidry/events{/privacy}","received_events_url":"https://api.github.com/users/theofidry/received_events","type":"User","site_admin":false},{"login":"BackEndTea","id":14289961,"avatar_url":"https://avatars1.githubusercontent.com/u/14289961?v=4","gravatar_id":"","url":"https://api.github.com/users/BackEndTea","html_url":"https://github.com/BackEndTea","followers_url":"https://api.github.com/users/BackEndTea/followers","following_url":"https://api.github.com/users/BackEndTea/following{/other_user}","gists_url":"https://api.github.com/users/BackEndTea/gists{/gist_id}","starred_url":"https://api.github.com/users/BackEndTea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BackEndTea/subscriptions","organizations_url":"https://api.github.com/users/BackEndTea/orgs","repos_url":"https://api.github.com/users/BackEndTea/repos","events_url":"https://api.github.com/users/BackEndTea/events{/privacy}","received_events_url":"https://api.github.com/users/BackEndTea/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":638156626,"url":"https://api.github.com/repos/infection/infection/labels/feature","name":"feature","color":"0e8a16","default":false}],"milestone":{"url":"https://api.github.com/repos/infection/infection/milestones/12","html_url":"https://github.com/infection/infection/milestone/12","labels_url":"https://api.github.com/repos/infection/infection/milestones/12/labels","id":3034059,"number":12,"title":"0.8.0","description":"","creator":{"login":"borNfreee","id":3725595,"avatar_url":"https://avatars2.githubusercontent.com/u/3725595?v=4","gravatar_id":"","url":"https://api.github.com/users/borNfreee","html_url":"https://github.com/borNfreee","followers_url":"https://api.github.com/users/borNfreee/followers","following_url":"https://api.github.com/users/borNfreee/following{/other_user}","gists_url":"https://api.github.com/users/borNfreee/gists{/gist_id}","starred_url":"https://api.github.com/users/borNfreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borNfreee/subscriptions","organizations_url":"https://api.github.com/users/borNfreee/orgs","repos_url":"https://api.github.com/users/borNfreee/repos","events_url":"https://api.github.com/users/borNfreee/events{/privacy}","received_events_url":"https://api.github.com/users/borNfreee/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"open","created_at":"2018-01-14T19:02:56Z","updated_at":"2018-02-11T21:09:38Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/infection/infection/pulls/176/commits","review_comments_url":"https://api.github.com/repos/infection/infection/pulls/176/comments","review_comment_url":"https://api.github.com/repos/infection/infection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infection/infection/issues/176/comments","statuses_url":"https://api.github.com/repos/infection/infection/statuses/d8738aab22fd22d957a8e8948bd224a30ea63b9f","head":{"label":"infection:coverage-path","ref":"coverage-path","sha":"d8738aab22fd22d957a8e8948bd224a30ea63b9f","user":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"repo":{"id":95741878,"name":"infection","full_name":"infection/infection","owner":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infection/infection","description":"AST based PHP Mutation Testing Framework","fork":false,"url":"https://api.github.com/repos/infection/infection","forks_url":"https://api.github.com/repos/infection/infection/forks","keys_url":"https://api.github.com/repos/infection/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infection/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infection/infection/teams","hooks_url":"https://api.github.com/repos/infection/infection/hooks","issue_events_url":"https://api.github.com/repos/infection/infection/issues/events{/number}","events_url":"https://api.github.com/repos/infection/infection/events","assignees_url":"https://api.github.com/repos/infection/infection/assignees{/user}","branches_url":"https://api.github.com/repos/infection/infection/branches{/branch}","tags_url":"https://api.github.com/repos/infection/infection/tags","blobs_url":"https://api.github.com/repos/infection/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infection/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infection/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/infection/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infection/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/infection/infection/languages","stargazers_url":"https://api.github.com/repos/infection/infection/stargazers","contributors_url":"https://api.github.com/repos/infection/infection/contributors","subscribers_url":"https://api.github.com/repos/infection/infection/subscribers","subscription_url":"https://api.github.com/repos/infection/infection/subscription","commits_url":"https://api.github.com/repos/infection/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/infection/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/infection/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/infection/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/infection/infection/contents/{+path}","compare_url":"https://api.github.com/repos/infection/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infection/infection/merges","archive_url":"https://api.github.com/repos/infection/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infection/infection/downloads","issues_url":"https://api.github.com/repos/infection/infection/issues{/number}","pulls_url":"https://api.github.com/repos/infection/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/infection/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/infection/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infection/infection/labels{/name}","releases_url":"https://api.github.com/repos/infection/infection/releases{/id}","deployments_url":"https://api.github.com/repos/infection/infection/deployments","created_at":"2017-06-29T05:29:49Z","updated_at":"2018-02-12T17:34:55Z","pushed_at":"2018-02-12T20:17:51Z","git_url":"git://github.com/infection/infection.git","ssh_url":"git@github.com:infection/infection.git","clone_url":"https://github.com/infection/infection.git","svn_url":"https://github.com/infection/infection","homepage":"https://infection.github.io","size":760,"stargazers_count":324,"watchers_count":324,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":24,"open_issues":31,"watchers":324,"default_branch":"master"}},"base":{"label":"infection:master","ref":"master","sha":"da9617f2d226f2b58294cf3e009b9c1db5db5214","user":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"repo":{"id":95741878,"name":"infection","full_name":"infection/infection","owner":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infection/infection","description":"AST based PHP Mutation Testing Framework","fork":false,"url":"https://api.github.com/repos/infection/infection","forks_url":"https://api.github.com/repos/infection/infection/forks","keys_url":"https://api.github.com/repos/infection/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infection/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infection/infection/teams","hooks_url":"https://api.github.com/repos/infection/infection/hooks","issue_events_url":"https://api.github.com/repos/infection/infection/issues/events{/number}","events_url":"https://api.github.com/repos/infection/infection/events","assignees_url":"https://api.github.com/repos/infection/infection/assignees{/user}","branches_url":"https://api.github.com/repos/infection/infection/branches{/branch}","tags_url":"https://api.github.com/repos/infection/infection/tags","blobs_url":"https://api.github.com/repos/infection/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infection/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infection/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/infection/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infection/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/infection/infection/languages","stargazers_url":"https://api.github.com/repos/infection/infection/stargazers","contributors_url":"https://api.github.com/repos/infection/infection/contributors","subscribers_url":"https://api.github.com/repos/infection/infection/subscribers","subscription_url":"https://api.github.com/repos/infection/infection/subscription","commits_url":"https://api.github.com/repos/infection/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/infection/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/infection/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/infection/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/infection/infection/contents/{+path}","compare_url":"https://api.github.com/repos/infection/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infection/infection/merges","archive_url":"https://api.github.com/repos/infection/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infection/infection/downloads","issues_url":"https://api.github.com/repos/infection/infection/issues{/number}","pulls_url":"https://api.github.com/repos/infection/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/infection/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/infection/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infection/infection/labels{/name}","releases_url":"https://api.github.com/repos/infection/infection/releases{/id}","deployments_url":"https://api.github.com/repos/infection/infection/deployments","created_at":"2017-06-29T05:29:49Z","updated_at":"2018-02-12T17:34:55Z","pushed_at":"2018-02-12T20:17:51Z","git_url":"git://github.com/infection/infection.git","ssh_url":"git@github.com:infection/infection.git","clone_url":"https://github.com/infection/infection.git","svn_url":"https://github.com/infection/infection","homepage":"https://infection.github.io","size":760,"stargazers_count":324,"watchers_count":324,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":24,"open_issues":31,"watchers":324,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infection/infection/pulls/176"},"html":{"href":"https://github.com/infection/infection/pull/176"},"issue":{"href":"https://api.github.com/repos/infection/infection/issues/176"},"comments":{"href":"https://api.github.com/repos/infection/infection/issues/176/comments"},"review_comments":{"href":"https://api.github.com/repos/infection/infection/pulls/176/comments"},"review_comment":{"href":"https://api.github.com/repos/infection/infection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infection/infection/pulls/176/commits"},"statuses":{"href":"https://api.github.com/repos/infection/infection/statuses/d8738aab22fd22d957a8e8948bd224a30ea63b9f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"sidz"}}