INFO: Sensor C# [csharp] (done) | time=1531ms
INFO: Sensor C# Tests Coverage Report Import [csharp]
INFO: Parsing the Visual Studio coverage XML report D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\coverage.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\coverage.xml
INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=309ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=50ms
INFO: CPD Executor 11 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 58 files
INFO: CPD Executor CPD calculation finished (done) | time=78ms
INFO: Analysis report generated in 145ms, dir size=628 KB
INFO: Analysis report compressed in 366ms, zip size=248 KB
INFO: Analysis report uploaded in 27ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=VCA.AW.API.NUnit
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=AYYCK6l088bKMRcUCcVc
INFO: Analysis total time: 5.648 s
I have configured coverage.xml in General Setting tabs under Language => C# => ’ Visual Studio Unit Tests (XML) Reports Paths’ => Given local storage file path to read file.
above logs are attached for a reference.
17:45:40.770 INFO: Sensor C# Tests Coverage Report Import [csharp]
17:45:40.771 DEBUG: Analyzing coverage with wildcardPatternFileProvider with base dir 'D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\.' and file separator '\'.
17:45:40.772 DEBUG: Pattern matcher extracted prefix/absolute path 'D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\coverage.xml' from the given pattern 'D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\coverage.xml'.
17:45:40.776 DEBUG: Pattern matcher returns a single file: 'D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\coverage.xml'.
17:45:40.776 DEBUG: The current user dir is 'D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API'.
17:45:40.777 INFO: Parsing the Visual Studio coverage XML report D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\coverage.xml
17:45:41.026 INFO: Adding this code coverage report to the cache for later reuse: D:\VCA Projects\AppointmentWaitlistAPI_NUnit\VCA.AW.API\coverage.xml
17:45:41.026 DEBUG: Analyzing coverage after aggregate found '0' coverage files.
17:45:41.026 DEBUG: The total number of file count statistics is '0'.
As per log, coverage.xml not getting from given path. But on hard disk its present.
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
but dealing with another issue for Unit Test count. I have written Unit Test cases for my code. After deployment in Sonarqube, Unit Test count always showing 0.
Not sure how to resolve this problem. I am using NUnit for Unit Test cases. I really appreciate if someone can provideany solution or any inputs on this.