Hi,
Looking to the logs I can see the following:
The configuration (setup by configure task) is:
{
"sonar.host.url": "https://sonarcloud.io/",
"sonar.login": *** ,
"sonar.organization": "Company",
"sonar.projectKey": "Company_appWebClient",
"sonar.projectVersion": "1.0",
"sonar.sources": "d:\\agent\\251\\s",
"sonar.branch.name": "tests/sonarcloud-test-code",
"sonar.scanner.metadataFilePath": "d:\\agent\\_temp\\sonar\\20230602.14\\55bca54d-4d92-e3ac-4f91-734a98f4d508\\report-task.txt",
"sonar.cs.vstest.reportsPaths": "d:\\agent\\_temp\\TestResults\\*.trx",
"sonar.coverage.exclusions": "**/Company*Migrations/**,**/Company*Test/**,**/Company*Tests/**,**/environments/environment*.ts,**/*.conf.js,**/src/main.ts,**/lib/http-services/*.services.ts,**/src/polyfills.ts,**/src/test.ts,**/lib/http-services/*.services.ts,**/lib/enumerations/*.enum.ts,**/lib/models/*.model.ts,**/e2e/src/app.e2e-spec.ts,**/e2e/src/app.po.ts,**/*.spec.ts,**/app-config.ts,**/*.interface.ts,**/Company-app-app/src/app/testing/**",
"sonar.exclusions": "**/coverage-include-all.spec.ts,**/TestResultJunit/*.xml,no_extra_exclusion_but_a_value_is_needed_after_comma",
"sonar.tsql.file.suffixes": ".sql,.tsql",
"sonar.plsql.file.suffixes": ".plsql,.pkb",
"sonar.test": "d:\\agent\\251\\s",
"sonar.test.inclusions": "**/*.spec.ts,**/*.spec.js,**/*.mock.ts,**/*.mock.js,no_extra_inclusions_but_a_value_is_needed_after_comma"
}
(please ignore “no_extra_inclusions_but_a_value_is_needed_after_comma”)
At the beginning we can read:
2023-06-02T18:18:32.7075062Z INFO: Project configuration:
2023-06-02T18:18:32.7076690Z INFO: Excluded sources: **/build-wrapper-dump.json, **/coverage-include-all.spec.ts, **/TestResultJunit/*.xml, no_extra_exclusion_but_a_value_is_needed_after_comma, **/*.spec.ts, **/*.spec.js, **/*.mock.ts, **/*.mock.js, no_extra_inclusions_but_a_value_is_needed_after_comma
2023-06-02T18:18:32.7081069Z INFO: Included tests: **/*.spec.ts, **/*.spec.js, **/*.mock.ts, **/*.mock.js, no_extra_inclusions_but_a_value_is_needed_after_comma
2023-06-02T18:18:32.7083302Z INFO: Excluded sources for coverage: **/Company*Migrations/**, **/Company*Test/**, **/Company*Tests/**, **/environments/environment*.ts, **/*.conf.js, **/src/main.ts, **/lib/http-services/*.services.ts, **/src/polyfills.ts, **/src/test.ts, **/lib/http-services/*.services.ts, **/lib/enumerations/*.enum.ts, **/lib/models/*.model.ts, **/e2e/src/app.e2e-spec.ts, **/e2e/src/app.po.ts, **/*.spec.ts, **/app-config.ts, **/*.interface.ts, **/Company-app-app/src/app/testing/**
2023-06-02T18:18:32.7084355Z INFO: Excluded sources for duplication: **\*.spec.ts
We can see sonar.test.inclusions
got added to the sonar.exclusions
somehow
Let me know if this is not enough and you need the full log