I tried the different variations of inclusions/exclusions but with no luck. For example, the following SonarCloud config file ‘.sonarcloud.properties’ resulted in the error with the analysis id “AYsaID5tifp0njjVd9u2”:
For the quotes analysis ID, the error is still the same:
ERROR: File src/Tests/Dodo.Cdp.Unit.Tests/ImportMailingsFromMindboxJob/TryGetStartEndTimeTests.cs can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files
I need to check with my team regarding the current values you have in the .sonarcoud.properties file and I’ll get back to you.
Meanwhile, did the project was ever analyzed successfully before? Also, can you try without the properties file?
Yes, this project can be successfully analyzed without the ‘.sonarcloud.properties’ file but there is no coverage and unit-tests statistics information in the report. All previous pull requests have the SonarCloud analysis succeeded.
Our current task is to setup the unit tests analysis and then tests coverage. So, I am creating pull requests with the different ‘.sonarcloud.properties’ file and want to find their analysis report in SonarCloud but the report is not generated because of the mentioned errors.
I would be really interested to understand what patterns finally work in your CI-based analysis. I believe the patterns I gave you should have worked and I’m wondering if there’s something going on in automatic analysis.