Closed sartymlg closed 8 years ago
Yep, I also faced with that issue so I refactored a little bit the test codes to make them Sonar compatible.
Example: project\test\app\dashboard\dashboard.controller.spec.js
(function() {
'use strict';
describe('app\\dashboard\\dashboard.controller.spec.js', function() {
// ...
beforeEach(inject(function(_$controller_, _applicationInfoService_, _$rootScope_) {
// ...
}));
it('should call applicationInfoService.getApplicationInfo once', function() {
// ...
});
});
})();
In short: in the describe section I specify the path to the test file.
Please let me know if it solved your problem!
Hi, thanks for develop this plugin. I'm trying to import my karma reports to sonar and seems that this is the best solution. However, i can't use it, because in my case, it generates this report
Sonar generic import expects as real path in the path attribute, do you have the same problem?