{"action":"closed","number":437,"pull_request":{"url":"https://api.github.com/repos/espressomd/espresso/pulls/437","id":47776387,"html_url":"https://github.com/espressomd/espresso/pull/437","diff_url":"https://github.com/espressomd/espresso/pull/437.diff","patch_url":"https://github.com/espressomd/espresso/pull/437.patch","issue_url":"https://api.github.com/repos/espressomd/espresso/issues/437","number":437,"state":"closed","locked":false,"title":"Added codecov support","user":{"login":"Marcello-Sega","id":466063,"avatar_url":"https://avatars.githubusercontent.com/u/466063?v=3","gravatar_id":"","url":"https://api.github.com/users/Marcello-Sega","html_url":"https://github.com/Marcello-Sega","followers_url":"https://api.github.com/users/Marcello-Sega/followers","following_url":"https://api.github.com/users/Marcello-Sega/following{/other_user}","gists_url":"https://api.github.com/users/Marcello-Sega/gists{/gist_id}","starred_url":"https://api.github.com/users/Marcello-Sega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marcello-Sega/subscriptions","organizations_url":"https://api.github.com/users/Marcello-Sega/orgs","repos_url":"https://api.github.com/users/Marcello-Sega/repos","events_url":"https://api.github.com/users/Marcello-Sega/events{/privacy}","received_events_url":"https://api.github.com/users/Marcello-Sega/received_events","type":"User","site_admin":false},"body":"This might be pretty much useful to pinpoint which parts of the code need a test to be added to the testsuite. \r\n\r\nAfter the discussion during the developer meeting, I looked around for some solution that could help tracing how good the testcases are. There are several options around to integrate the CI builds with output from code coverage tools, such as [gcov](https://en.wikipedia.org/wiki/Gcov). I found particularly simple to add in travis support for [codecov](https://codecov.io).\r\n\r\nWith this patch I added code coverage to one of the element of the travis matrix. The outcome can be seen, for example, in this snapshot:\r\n\r\n![screen shot 2015-10-15 at 13 51 26](https://cloud.githubusercontent.com/assets/466063/10512919/2ae4b5ba-7344-11e5-9944-abb1e050b3c1.png)\r\n\r\n\r\nYou can have a look directly at [the annotated code files of this patch](https://codecov.io/github/Marcello-Sega/espresso/src/core/integrate.cpp?ref=1c74fd659c32bdde7b5c4900527e2507e98194fe) (this is an example of the coverage of `integrate.cpp` with the `maxset` option,  which for example does not cover NPT.\r\n\r\nCodecov support is free (as in free beer) for open source projects.\r\n\r\nThere is also a [plugin for chrome](https://chrome.google.com/webstore/detail/codecov-extension/keefkhehidemnokodkdkejapdgfjmijf?hl=en-US), for example, to show directly the code coverage in the github page, as in these snapshots\r\n\r\n![screen shot 2015-10-15 at 13 47 42](https://cloud.githubusercontent.com/assets/466063/10512810/628f76ae-7343-11e5-9c51-464810f649fd.png)\r\n\r\n![screen shot 2015-10-15 at 13 47 52](https://cloud.githubusercontent.com/assets/466063/10512820/6e4451e0-7343-11e5-97b3-a56ed28a3835.png)\r\n\r\n\r\n\r\n  ","created_at":"2015-10-15T11:55:08Z","updated_at":"2015-10-15T19:48:01Z","closed_at":"2015-10-15T19:48:01Z","merged_at":"2015-10-15T19:48:01Z","merge_commit_sha":"007be42379a5a26f079752fc9ca124103ed37596","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/espressomd/espresso/pulls/437/commits","review_comments_url":"https://api.github.com/repos/espressomd/espresso/pulls/437/comments","review_comment_url":"https://api.github.com/repos/espressomd/espresso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/espressomd/espresso/issues/437/comments","statuses_url":"https://api.github.com/repos/espressomd/espresso/statuses/1c74fd659c32bdde7b5c4900527e2507e98194fe","head":{"label":"Marcello-Sega:codecov2","ref":"codecov2","sha":"1c74fd659c32bdde7b5c4900527e2507e98194fe","user":{"login":"Marcello-Sega","id":466063,"avatar_url":"https://avatars.githubusercontent.com/u/466063?v=3","gravatar_id":"","url":"https://api.github.com/users/Marcello-Sega","html_url":"https://github.com/Marcello-Sega","followers_url":"https://api.github.com/users/Marcello-Sega/followers","following_url":"https://api.github.com/users/Marcello-Sega/following{/other_user}","gists_url":"https://api.github.com/users/Marcello-Sega/gists{/gist_id}","starred_url":"https://api.github.com/users/Marcello-Sega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marcello-Sega/subscriptions","organizations_url":"https://api.github.com/users/Marcello-Sega/orgs","repos_url":"https://api.github.com/users/Marcello-Sega/repos","events_url":"https://api.github.com/users/Marcello-Sega/events{/privacy}","received_events_url":"https://api.github.com/users/Marcello-Sega/received_events","type":"User","site_admin":false},"repo":{"id":8332216,"name":"espresso","full_name":"Marcello-Sega/espresso","owner":{"login":"Marcello-Sega","id":466063,"avatar_url":"https://avatars.githubusercontent.com/u/466063?v=3","gravatar_id":"","url":"https://api.github.com/users/Marcello-Sega","html_url":"https://github.com/Marcello-Sega","followers_url":"https://api.github.com/users/Marcello-Sega/followers","following_url":"https://api.github.com/users/Marcello-Sega/following{/other_user}","gists_url":"https://api.github.com/users/Marcello-Sega/gists{/gist_id}","starred_url":"https://api.github.com/users/Marcello-Sega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marcello-Sega/subscriptions","organizations_url":"https://api.github.com/users/Marcello-Sega/orgs","repos_url":"https://api.github.com/users/Marcello-Sega/repos","events_url":"https://api.github.com/users/Marcello-Sega/events{/privacy}","received_events_url":"https://api.github.com/users/Marcello-Sega/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Marcello-Sega/espresso","description":"The ESPResSo package","fork":true,"url":"https://api.github.com/repos/Marcello-Sega/espresso","forks_url":"https://api.github.com/repos/Marcello-Sega/espresso/forks","keys_url":"https://api.github.com/repos/Marcello-Sega/espresso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Marcello-Sega/espresso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Marcello-Sega/espresso/teams","hooks_url":"https://api.github.com/repos/Marcello-Sega/espresso/hooks","issue_events_url":"https://api.github.com/repos/Marcello-Sega/espresso/issues/events{/number}","events_url":"https://api.github.com/repos/Marcello-Sega/espresso/events","assignees_url":"https://api.github.com/repos/Marcello-Sega/espresso/assignees{/user}","branches_url":"https://api.github.com/repos/Marcello-Sega/espresso/branches{/branch}","tags_url":"https://api.github.com/repos/Marcello-Sega/espresso/tags","blobs_url":"https://api.github.com/repos/Marcello-Sega/espresso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Marcello-Sega/espresso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Marcello-Sega/espresso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Marcello-Sega/espresso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Marcello-Sega/espresso/statuses/{sha}","languages_url":"https://api.github.com/repos/Marcello-Sega/espresso/languages","stargazers_url":"https://api.github.com/repos/Marcello-Sega/espresso/stargazers","contributors_url":"https://api.github.com/repos/Marcello-Sega/espresso/contributors","subscribers_url":"https://api.github.com/repos/Marcello-Sega/espresso/subscribers","subscription_url":"https://api.github.com/repos/Marcello-Sega/espresso/subscription","commits_url":"https://api.github.com/repos/Marcello-Sega/espresso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Marcello-Sega/espresso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Marcello-Sega/espresso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Marcello-Sega/espresso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Marcello-Sega/espresso/contents/{+path}","compare_url":"https://api.github.com/repos/Marcello-Sega/espresso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Marcello-Sega/espresso/merges","archive_url":"https://api.github.com/repos/Marcello-Sega/espresso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Marcello-Sega/espresso/downloads","issues_url":"https://api.github.com/repos/Marcello-Sega/espresso/issues{/number}","pulls_url":"https://api.github.com/repos/Marcello-Sega/espresso/pulls{/number}","milestones_url":"https://api.github.com/repos/Marcello-Sega/espresso/milestones{/number}","notifications_url":"https://api.github.com/repos/Marcello-Sega/espresso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Marcello-Sega/espresso/labels{/name}","releases_url":"https://api.github.com/repos/Marcello-Sega/espresso/releases{/id}","created_at":"2013-02-21T09:40:57Z","updated_at":"2014-06-04T18:48:31Z","pushed_at":"2015-10-15T11:22:50Z","git_url":"git://github.com/Marcello-Sega/espresso.git","ssh_url":"git@github.com:Marcello-Sega/espresso.git","clone_url":"https://github.com/Marcello-Sega/espresso.git","svn_url":"https://github.com/Marcello-Sega/espresso","homepage":"http://espressomd.org","size":74989,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"shanchen"}},"base":{"label":"espressomd:master","ref":"master","sha":"084df8f446ed2cacf476e8d9709b8ba6d08acd88","user":{"login":"espressomd","id":689837,"avatar_url":"https://avatars.githubusercontent.com/u/689837?v=3","gravatar_id":"","url":"https://api.github.com/users/espressomd","html_url":"https://github.com/espressomd","followers_url":"https://api.github.com/users/espressomd/followers","following_url":"https://api.github.com/users/espressomd/following{/other_user}","gists_url":"https://api.github.com/users/espressomd/gists{/gist_id}","starred_url":"https://api.github.com/users/espressomd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espressomd/subscriptions","organizations_url":"https://api.github.com/users/espressomd/orgs","repos_url":"https://api.github.com/users/espressomd/repos","events_url":"https://api.github.com/users/espressomd/events{/privacy}","received_events_url":"https://api.github.com/users/espressomd/received_events","type":"Organization","site_admin":false},"repo":{"id":1524644,"name":"espresso","full_name":"espressomd/espresso","owner":{"login":"espressomd","id":689837,"avatar_url":"https://avatars.githubusercontent.com/u/689837?v=3","gravatar_id":"","url":"https://api.github.com/users/espressomd","html_url":"https://github.com/espressomd","followers_url":"https://api.github.com/users/espressomd/followers","following_url":"https://api.github.com/users/espressomd/following{/other_user}","gists_url":"https://api.github.com/users/espressomd/gists{/gist_id}","starred_url":"https://api.github.com/users/espressomd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espressomd/subscriptions","organizations_url":"https://api.github.com/users/espressomd/orgs","repos_url":"https://api.github.com/users/espressomd/repos","events_url":"https://api.github.com/users/espressomd/events{/privacy}","received_events_url":"https://api.github.com/users/espressomd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/espressomd/espresso","description":"The ESPResSo package","fork":false,"url":"https://api.github.com/repos/espressomd/espresso","forks_url":"https://api.github.com/repos/espressomd/espresso/forks","keys_url":"https://api.github.com/repos/espressomd/espresso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/espressomd/espresso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/espressomd/espresso/teams","hooks_url":"https://api.github.com/repos/espressomd/espresso/hooks","issue_events_url":"https://api.github.com/repos/espressomd/espresso/issues/events{/number}","events_url":"https://api.github.com/repos/espressomd/espresso/events","assignees_url":"https://api.github.com/repos/espressomd/espresso/assignees{/user}","branches_url":"https://api.github.com/repos/espressomd/espresso/branches{/branch}","tags_url":"https://api.github.com/repos/espressomd/espresso/tags","blobs_url":"https://api.github.com/repos/espressomd/espresso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/espressomd/espresso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/espressomd/espresso/git/refs{/sha}","trees_url":"https://api.github.com/repos/espressomd/espresso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/espressomd/espresso/statuses/{sha}","languages_url":"https://api.github.com/repos/espressomd/espresso/languages","stargazers_url":"https://api.github.com/repos/espressomd/espresso/stargazers","contributors_url":"https://api.github.com/repos/espressomd/espresso/contributors","subscribers_url":"https://api.github.com/repos/espressomd/espresso/subscribers","subscription_url":"https://api.github.com/repos/espressomd/espresso/subscription","commits_url":"https://api.github.com/repos/espressomd/espresso/commits{/sha}","git_commits_url":"https://api.github.com/repos/espressomd/espresso/git/commits{/sha}","comments_url":"https://api.github.com/repos/espressomd/espresso/comments{/number}","issue_comment_url":"https://api.github.com/repos/espressomd/espresso/issues/comments{/number}","contents_url":"https://api.github.com/repos/espressomd/espresso/contents/{+path}","compare_url":"https://api.github.com/repos/espressomd/espresso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/espressomd/espresso/merges","archive_url":"https://api.github.com/repos/espressomd/espresso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/espressomd/espresso/downloads","issues_url":"https://api.github.com/repos/espressomd/espresso/issues{/number}","pulls_url":"https://api.github.com/repos/espressomd/espresso/pulls{/number}","milestones_url":"https://api.github.com/repos/espressomd/espresso/milestones{/number}","notifications_url":"https://api.github.com/repos/espressomd/espresso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/espressomd/espresso/labels{/name}","releases_url":"https://api.github.com/repos/espressomd/espresso/releases{/id}","created_at":"2011-03-25T07:43:15Z","updated_at":"2015-10-05T20:49:48Z","pushed_at":"2015-10-15T19:48:01Z","git_url":"git://github.com/espressomd/espresso.git","ssh_url":"git@github.com:espressomd/espresso.git","clone_url":"https://github.com/espressomd/espresso.git","svn_url":"https://github.com/espressomd/espresso","homepage":"http://espressomd.org","size":86989,"stargazers_count":32,"watchers_count":32,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":65,"forks":67,"open_issues":65,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/437"},"html":{"href":"https://github.com/espressomd/espresso/pull/437"},"issue":{"href":"https://api.github.com/repos/espressomd/espresso/issues/437"},"comments":{"href":"https://api.github.com/repos/espressomd/espresso/issues/437/comments"},"review_comments":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/437/comments"},"review_comment":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/espressomd/espresso/pulls/437/commits"},"statuses":{"href":"https://api.github.com/repos/espressomd/espresso/statuses/1c74fd659c32bdde7b5c4900527e2507e98194fe"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fweik","id":893663,"avatar_url":"https://avatars.githubusercontent.com/u/893663?v=3","gravatar_id":"","url":"https://api.github.com/users/fweik","html_url":"https://github.com/fweik","followers_url":"https://api.github.com/users/fweik/followers","following_url":"https://api.github.com/users/fweik/following{/other_user}","gists_url":"https://api.github.com/users/fweik/gists{/gist_id}","starred_url":"https://api.github.com/users/fweik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fweik/subscriptions","organizations_url":"https://api.github.com/users/fweik/orgs","repos_url":"https://api.github.com/users/fweik/repos","events_url":"https://api.github.com/users/fweik/events{/privacy}","received_events_url":"https://api.github.com/users/fweik/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":13,"deletions":2,"changed_files":2}}