Sonarqube test report “report refers to a file which is not configured as a test file” when tests and source are together
问题 I am using TypeScript and Jest and have my tests next to my source files. e.g: someDir someCode.ts someCode.spec.ts When I try and import the text-report.xml (which looks to be fine and matches the format), I get an error saying: 'Line X report refers to a file which is not configured as a test file: /someDir/someCode.spec.ts' What configuration do I need in in the Sonarqube properties so that it understand which files are tests and which are source? 回答1: Seems it doesn't detect files in sub