{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/issues/32","labels_url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/issues/32/comments","events_url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/issues/32/events","html_url":"https://github.com/karma-runner/karma-junit-reporter/issues/32","id":52223248,"number":32,"title":"Assign value of classnames of test results to relative path of spec file","user":{"login":"sravikiran","id":1727372,"avatar_url":"https://avatars.githubusercontent.com/u/1727372?v=3","gravatar_id":"","url":"https://api.github.com/users/sravikiran","html_url":"https://github.com/sravikiran","followers_url":"https://api.github.com/users/sravikiran/followers","following_url":"https://api.github.com/users/sravikiran/following{/other_user}","gists_url":"https://api.github.com/users/sravikiran/gists{/gist_id}","starred_url":"https://api.github.com/users/sravikiran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sravikiran/subscriptions","organizations_url":"https://api.github.com/users/sravikiran/orgs","repos_url":"https://api.github.com/users/sravikiran/repos","events_url":"https://api.github.com/users/sravikiran/events{/privacy}","received_events_url":"https://api.github.com/users/sravikiran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/labels/needs:%20investigation","name":"needs: investigation","color":"fbca04"},{"url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/labels/needs:%20review","name":"needs: review","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-17T10:21:14Z","updated_at":"2015-05-13T19:47:56Z","closed_at":null,"body":"Hi,\r\n\r\nWe are creating Sonar reports based on the data generated by karma-junit-reporter. We recently upgraded to Sonar 4.5.1 and It is not able to generate report based on the TEST-results.xml file generated. It is expecting the classnames to be relative paths of the corresponding spec files. It will be of great help if you can implement this feature or provide guidance on how to achieve it."},"comment":{"url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/issues/comments/101793626","html_url":"https://github.com/karma-runner/karma-junit-reporter/issues/32#issuecomment-101793626","issue_url":"https://api.github.com/repos/karma-runner/karma-junit-reporter/issues/32","id":101793626,"user":{"login":"FrontierPsychiatrist","id":3382041,"avatar_url":"https://avatars.githubusercontent.com/u/3382041?v=3","gravatar_id":"","url":"https://api.github.com/users/FrontierPsychiatrist","html_url":"https://github.com/FrontierPsychiatrist","followers_url":"https://api.github.com/users/FrontierPsychiatrist/followers","following_url":"https://api.github.com/users/FrontierPsychiatrist/following{/other_user}","gists_url":"https://api.github.com/users/FrontierPsychiatrist/gists{/gist_id}","starred_url":"https://api.github.com/users/FrontierPsychiatrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrontierPsychiatrist/subscriptions","organizations_url":"https://api.github.com/users/FrontierPsychiatrist/orgs","repos_url":"https://api.github.com/users/FrontierPsychiatrist/repos","events_url":"https://api.github.com/users/FrontierPsychiatrist/events{/privacy}","received_events_url":"https://api.github.com/users/FrontierPsychiatrist/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T19:47:56Z","updated_at":"2015-05-13T19:47:56Z","body":"We have the same problem, Sonar does not accept classnames that look like this:\r\n```\r\nclassname=\"PhantomJS 1.9.8 (Linux).LodashHelpers\"\r\n```\r\nIt logs this error\r\n```\r\n[Step 4/4] 21:26:55.162 WARN  - Test result will not be saved for test class \"9.8 (Linux).LodashHelpers\", because SonarQube associated resource has not been found using file name: \"9/8 (Linux)/LodashHelpers.js\"\r\n```"}}