{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/65","labels_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/65/comments","events_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/65/events","html_url":"https://github.com/karma-runner/karma-coverage/issues/65","id":28727125,"number":65,"title":"Coverage Report Dumps .js.html files into same directory as covered files when karma conf file in separate directory","user":{"login":"opnsrce","id":1098790,"avatar_url":"https://avatars.githubusercontent.com/u/1098790?v=3","gravatar_id":"","url":"https://api.github.com/users/opnsrce","html_url":"https://github.com/opnsrce","followers_url":"https://api.github.com/users/opnsrce/followers","following_url":"https://api.github.com/users/opnsrce/following{/other_user}","gists_url":"https://api.github.com/users/opnsrce/gists{/gist_id}","starred_url":"https://api.github.com/users/opnsrce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opnsrce/subscriptions","organizations_url":"https://api.github.com/users/opnsrce/orgs","repos_url":"https://api.github.com/users/opnsrce/repos","events_url":"https://api.github.com/users/opnsrce/events{/privacy}","received_events_url":"https://api.github.com/users/opnsrce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karma-runner/karma-coverage/labels/needs:%20investigation","name":"needs: investigation","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-03-04T18:05:05Z","updated_at":"2015-08-07T10:42:02Z","closed_at":null,"body":"I've noticed the following possible bug:\r\n\r\nWhen the karma conf file is in a separate directory from the files being tested, the coverage report files don't get placed in the ``coverage`` directory. Instead, the files get placed in the same directory as the files being covered.\r\n\r\nHere's my karma conf file for reference:\r\n```javascript\r\nmodule.exports = function(config) {\r\n    config.set({\r\n        basePath: './',\r\n        autoWatch: true,\r\n        frameworks: ['jasmine'],\r\n        files: [\r\n            '../public_html/libs/jquery/*.js',\r\n            '../public_html/libs/mylib/lib.js',\r\n            '../public_html/libs/mylib/utility.js',\r\n            '../public_html/libs/mylib/config/*.js',\r\n            '../public_html/libs/mylib/enumerations.js',\r\n            '../public_html/libs/mylib/apiComm.js',\r\n            '../public_html/libs/mylib/baseObject.js',\r\n            '../public_html/libs/mylib/book.js',\r\n            '../public_html/libs/mylib/file.js',\r\n            '../public_html/libs/mylib/library.js',\r\n            '../public_html/libs/mylib/publishing.js',\r\n            '../public_html/libs/mylib/topic.js',\r\n            '../test/*Spec.js'\r\n        ],\r\n        reporters: ['progress', 'coverage'],\r\n        preprocessors: {\r\n            '../public_html/libs/mylib/*.js': ['coverage']\r\n        },\r\n        port: 9876,\r\n        colors: true,\r\n        browsers: ['Chrome'],\r\n        captureTimeout: 60000,\r\n        singleRun: false\r\n    });\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/comments/128670037","html_url":"https://github.com/karma-runner/karma-coverage/issues/65#issuecomment-128670037","issue_url":"https://api.github.com/repos/karma-runner/karma-coverage/issues/65","id":128670037,"user":{"login":"stevehipwell","id":6552347,"avatar_url":"https://avatars.githubusercontent.com/u/6552347?v=3","gravatar_id":"","url":"https://api.github.com/users/stevehipwell","html_url":"https://github.com/stevehipwell","followers_url":"https://api.github.com/users/stevehipwell/followers","following_url":"https://api.github.com/users/stevehipwell/following{/other_user}","gists_url":"https://api.github.com/users/stevehipwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stevehipwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevehipwell/subscriptions","organizations_url":"https://api.github.com/users/stevehipwell/orgs","repos_url":"https://api.github.com/users/stevehipwell/repos","events_url":"https://api.github.com/users/stevehipwell/events{/privacy}","received_events_url":"https://api.github.com/users/stevehipwell/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T10:42:02Z","updated_at":"2015-08-07T10:42:02Z","body":"+1 Same issue here on windows using `basePath: ''`."}}