SonarQube: проект еще не проанализирован в пользовательском интерфейсе SonarQube - PullRequest
0 голосов
/ 29 октября 2018

Я новичок в SonarQube. Я пытаюсь проанализировать результаты модульного тестирования Jest.

Сначала я запустил сервер SonarQube локально, а затем запустил npm run sonar-scanner. Я перешел на http://localhost:9000. Все вышеперечисленные шаги успешно выполнены, но проект не анализируется в пользовательском интерфейсе. Я не вижу никаких отчетов. Все кажется правильным. любая помощь?

sonar-project.properties

sonar.projectKey=jest-sonar-reporter
sonar.projectName=Jest Sonar Reporter
sonar.projectVersion=1.0

sonar.language=ts
sonar.sources=src/app
sonar.tests=src/app
sonar.exclusions=**/node_modules/**,**/*.spec.ts
sonar.sourceEncoding=UTF-8
sonar.test.inclusions=src/app/**/*.spec.ts

sonar.testExecutionReportPaths=test-report.xml

сонар-сканер с пробегом в минуту

INFO: 315 files ignored because of inclusion/exclusion patterns
INFO: Quality profile for ts: Sonar way
INFO: Sensor Generic Test Executions Report
INFO: Parsing /home/n/workspace/qmc-applauncher-web/test-report.xml
INFO: Imported test execution data for 54 files
INFO: Sensor Generic Test Executions Report (done) | time=68ms
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=3ms
INFO: Sensor SonarTS [typescript]
WARN: Metric 'comment_lines_data' is deprecated. Provided value is 
ignored.
INFO: Sensor SonarTS [typescript] (done) | time=13323ms
INFO: Sensor SonarTS Coverage [typescript]
INFO: Sensor SonarTS Coverage [typescript] (done) | time=0ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=171ms
INFO: Sensor JavaSecuritySensor [security]
INFO: UCFGs: 0, excluded: 0, source entrypoints: 0
INFO: No UCFGs have been included for analysis.
INFO: Sensor JavaSecuritySensor [security] (done) | time=2ms
INFO: Sensor CSharpSecuritySensor [security]
INFO: UCFGs: 0, excluded: 0, source entrypoints: 0
INFO: No UCFGs have been included for analysis.
INFO: Sensor CSharpSecuritySensor [security] (done) | time=1ms
INFO: SCM provider for this project is: git
INFO: 198 files to be analyzed
INFO: 198/198 files analyzed
INFO: 20 files had no CPD blocks
INFO: Calculating CPD for 124 files
INFO: CPD calculation finished
INFO: Analysis report generated in 469ms, dir size=1 MB
INFO: Analysis reports compressed in 530ms, zip size=710 KB
INFO: Analysis report uploaded in 124ms
INFO: ANALYSIS SUCCESSFUL, you can browse 
http://localhost:9000/dashboard?id=jest-sonar-reporter
INFO: Note that you will be able to access the updated dashboard once 
the server has processed the submitted analysis report
INFO: More about the report processing at 
http://localhost:9000/api/ce/task?id=AWbAVSfYvpKxmBZWYZZ4
INFO: Task total time: 31.330 s
INFO: ---------------------------------------------------------------- 
--------
INFO: EXECUTION SUCCESS
INFO: ---------------------------------------------------------------- 
--------
INFO: Total time: 33.038s
INFO: Final Memory: 23M/84M
INFO: ----------------------------------------------------------------- 
-------

Package.json

"jest": {
"preset": "jest-preset-angular",
"roots": [
  "<rootDir>/src/app/"
],
"setupTestFrameworkScriptFile": "<rootDir>/src/setup-jest.ts",
"testResultsProcessor": "jest-sonar-reporter"
},
"jestSonar": {
"reportPath": "reports",
"reportFile": "test-reporter.xml",
"indent": 4
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...