Sonarqube test report “report refers to a file which is not configured as a test file” when tests and source are together

前端 未结 3 1879
情话喂你
情话喂你 2021-01-18 06:33

I am using TypeScript and Jest and have my tests next to my source files. e.g:

  • someDir
    • someCode.ts
    • someCode.spec.ts
<
3条回答
  •  孤街浪徒
    2021-01-18 06:44

    For me even after adding sonar.test.inclusions=**/*-spec.js , test reports were not coming. It worked after adding sonar.tests=.(same as sonar.sources)

提交回复
热议问题