I have configured angular project for SonarQube. But it gives exception
ERROR: Error during SonarQube Scanner execution ERROR: Error during parsing of generic test execution report ‘/Users/username/abc-fe/reports/ut_report.xml’. Look at the SonarQube documentation to know the expected XML format. ERROR: Caused by: Line 2 of report refers to a file with an unknown language: src/app/requests/detail/abc/abc.component.spec.ts ERROR:
Following is the part of report.xml
<testExecutions version="1">
<file path="src/app/requests/detail/abc/abc.component.spec.ts">
<testCase name="ViewDocumentComponent should create" duration="238"/>
</file>
<file path="src/app/shared/alert/zyx.component.spec.ts">
<testCase name="AlertPopUpModalComponent should create" duration="13"/>
</file>
</testExecutions>
Following are the properties for sonar.properties
sonar.sources=src
sonar.exclusions=**/node_modules/**, src/assets/styles/**
sonar.tests=src
sonar.test.inclusions=**/*.spec.ts
sonar.typescript.lcov.reportPaths= coverage/lcov.info,
sonar.testExecutionReportPaths= reports/report.xml
I don’t understand what am I doing wrong. Thanks for help.
- SonarQube Version 7.1 (build 11001)