{"action":"created","issue":{"url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/54","labels_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/54/comments","events_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/54/events","html_url":"https://github.com/SimonKagstrom/kcov/issues/54","id":55677169,"number":54,"title":"Merging coverage of different tests using the same executable","user":{"login":"mgehre","id":774286,"avatar_url":"https://avatars.githubusercontent.com/u/774286?v=3","gravatar_id":"","url":"https://api.github.com/users/mgehre","html_url":"https://github.com/mgehre","followers_url":"https://api.github.com/users/mgehre/followers","following_url":"https://api.github.com/users/mgehre/following{/other_user}","gists_url":"https://api.github.com/users/mgehre/gists{/gist_id}","starred_url":"https://api.github.com/users/mgehre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgehre/subscriptions","organizations_url":"https://api.github.com/users/mgehre/orgs","repos_url":"https://api.github.com/users/mgehre/repos","events_url":"https://api.github.com/users/mgehre/events{/privacy}","received_events_url":"https://api.github.com/users/mgehre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T21:29:47Z","updated_at":"2015-01-28T03:24:23Z","closed_at":null,"body":"Hi,\r\n\r\nthanks again for fixing the shared library coverage. My current issue lies with the merging of coverage from multiple runs of the same executable.\r\nIf I run\r\n```\r\nkcov /tmp/kcov app -opt1\r\nkcov /tmp/kcov app -opt2\r\n```\r\nthen /tmp/kcov holds only the results of the last invocation of \"app\".\r\n\r\nIf I use different directories for each invocation and then use kcov-merge, I seem not to be able to look at individual source file coverage anymore.\r\n\r\nIs there a way to aggregate coverage from multiple runs of the same executable (with different options?)\r\n\r\nBest wishes,\r\nMatthias"},"comment":{"url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/comments/71774932","html_url":"https://github.com/SimonKagstrom/kcov/issues/54#issuecomment-71774932","issue_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/54","id":71774932,"user":{"login":"SimonKagstrom","id":373351,"avatar_url":"https://avatars.githubusercontent.com/u/373351?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKagstrom","html_url":"https://github.com/SimonKagstrom","followers_url":"https://api.github.com/users/SimonKagstrom/followers","following_url":"https://api.github.com/users/SimonKagstrom/following{/other_user}","gists_url":"https://api.github.com/users/SimonKagstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKagstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKagstrom/subscriptions","organizations_url":"https://api.github.com/users/SimonKagstrom/orgs","repos_url":"https://api.github.com/users/SimonKagstrom/repos","events_url":"https://api.github.com/users/SimonKagstrom/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKagstrom/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T03:24:23Z","updated_at":"2015-01-28T03:24:23Z","body":"That's actually something which should just work \"out-of-the-box\", and I also have regression tests for it in the test suite, which passes.\r\n\r\nWhat kind of application are you running (Python, Bash or a compiled program)?\r\n\r\n\r\nDoes it work with a trivial test, such as a shell script which can be invoked with different parameters:\r\n\r\n```sh\r\n#!/bin/bash\r\n\r\nif [ $1 -eq 1 ] ; then\r\n   echo \"first\"\r\nelse\r\n   echo \"second\"\r\nfi\r\n```\r\n\r\nkcov-merge only outputs a summary, so individual sources are not present there. Something similar would be possible to add to kcov itself, but I haven't seen it as very important so far."}}