{"action":"created","issue":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/103","repository_url":"https://api.github.com/repos/monounity/karma-typescript","labels_url":"https://api.github.com/repos/monounity/karma-typescript/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/monounity/karma-typescript/issues/103/comments","events_url":"https://api.github.com/repos/monounity/karma-typescript/issues/103/events","html_url":"https://github.com/monounity/karma-typescript/issues/103","id":215385523,"number":103,"title":"Branch coverage with namespaces in AngularJS","user":{"login":"juri33","id":12385112,"avatar_url":"https://avatars3.githubusercontent.com/u/12385112?v=3","gravatar_id":"","url":"https://api.github.com/users/juri33","html_url":"https://github.com/juri33","followers_url":"https://api.github.com/users/juri33/followers","following_url":"https://api.github.com/users/juri33/following{/other_user}","gists_url":"https://api.github.com/users/juri33/gists{/gist_id}","starred_url":"https://api.github.com/users/juri33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juri33/subscriptions","organizations_url":"https://api.github.com/users/juri33/orgs","repos_url":"https://api.github.com/users/juri33/repos","events_url":"https://api.github.com/users/juri33/events{/privacy}","received_events_url":"https://api.github.com/users/juri33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-20T10:56:05Z","updated_at":"2017-03-20T20:18:44Z","closed_at":null,"body":"![namespace](https://cloud.githubusercontent.com/assets/12385112/24096929/f8f378be-0d63-11e7-9caa-5e81d390b951.JPG)\r\n\r\n50% Branch Coverage? What is wrong?"},"comment":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/comments/287884704","html_url":"https://github.com/monounity/karma-typescript/issues/103#issuecomment-287884704","issue_url":"https://api.github.com/repos/monounity/karma-typescript/issues/103","id":287884704,"user":{"login":"erikbarke","id":5539280,"avatar_url":"https://avatars0.githubusercontent.com/u/5539280?v=3","gravatar_id":"","url":"https://api.github.com/users/erikbarke","html_url":"https://github.com/erikbarke","followers_url":"https://api.github.com/users/erikbarke/followers","following_url":"https://api.github.com/users/erikbarke/following{/other_user}","gists_url":"https://api.github.com/users/erikbarke/gists{/gist_id}","starred_url":"https://api.github.com/users/erikbarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikbarke/subscriptions","organizations_url":"https://api.github.com/users/erikbarke/orgs","repos_url":"https://api.github.com/users/erikbarke/repos","events_url":"https://api.github.com/users/erikbarke/events{/privacy}","received_events_url":"https://api.github.com/users/erikbarke/received_events","type":"User","site_admin":false},"created_at":"2017-03-20T20:18:44Z","updated_at":"2017-03-20T20:18:44Z","body":"I put your example in a file, `test.ts`:\r\n\r\n```javascript\r\nnamespace app.trends {\r\n    \"use strict\";\r\n\r\n    angular\r\n        .module(\"app.trends\", []);\r\n}\r\n``` \r\n\r\n And then tried creating coverage in two ways:\r\n\r\n1: Running `tsc`, `istanbul` and `remap-istanbul` on the command line:\r\n```bash\r\n./node_modules/.bin/tsc -sourceMap test.ts\r\n./node_modules/.bin/istanbul cover test.js\r\n./node_modules/.bin/remap-istanbul -i coverage/coverage.json -o html-report -t html\r\n```\r\n\r\n2: Putting the file in the src folder of [the angularjs example project](https://github.com/monounity/karma-typescript/tree/master/examples/angularjs) and running it.\r\n\r\nI got 100% coverage both times:\r\n<img width=\"587\" alt=\"\" src=\"https://cloud.githubusercontent.com/assets/5539280/24119624/2ed8cce2-0db2-11e7-8e30-bbb972eb92b6.png\">\r\n\r\nSo there must be something else at play here, what does the rest of your code look like, are there any files in the same namespace that aren't fully covered?\r\n\r\n\r\n"}}
{"actor":{"display_login":"erikbarke"}}