-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet test with coverlet failed when UseSourceLink #482
Comments
Can you provide more details?What does "non valid" mean? |
I cannot repro
|
If you read SonarSource/sonar-scanner-msbuild#756 . You will found that, I got similar output as yours. |
It's a bit different you got strange average SonarSource/sonar-scanner-msbuild#756 (comment) right? |
w/ UseSourceLink (see "Print opencover") <Files>
<File uid="1" fullPath="https://raw.githubusercontent.com/iron9light/HOCON.Json/654d4ea8ec524f72027e2b2d324aad9acf80b710/src/Hocon.Json/obj/Release/netstandard2.0/Hocon.Json.Version.cs" />
<File uid="2" fullPath="https://raw.githubusercontent.com/iron9light/HOCON.Json/654d4ea8ec524f72027e2b2d324aad9acf80b710/src/Hocon.Json/HoconJsonExtentions.cs" />
</Files> w/o UseSourceLink <Files>
<File uid="1" fullPath="D:\a\1\s\src\Hocon.Json\obj\Release\netstandard2.0\Hocon.Json.Version.cs" />
<File uid="2" fullPath="D:\a\1\s\src\Hocon.Json\HoconJsonExtentions.cs" />
</Files> @MarcoRossignoli Is the result correct? |
The strange thing I see is that |
@AArnott do you have any idea?That file seem nbgv tmp file generated. |
The version file is generated by Nerdbank.GitVersioning. |
@iron9light I've removed the Sonar tasks from my copy of your build .yml and done a couple more tests. The links below are to the Azure DevOps build logs.
|
@duncanp-sonar that error seem #418 but I cannot repro on my local after cloning
|
Hi @MarcoRossignoli. Yep, looks like there are a couple of different issues. Re (1): those failing builds were on MS-hosted agents ( Re: #418: I did point @iron9light at this issue a couple of days ago. However, I saw that the bug was closed and available in your nightly build for 2.6.1, and @iron9light is using 2.6.2. Which version is the bug fix in? |
I'm using Hosted Windows 2019 with VS2019 for my azure pipelines. |
@iron9light is this issue active yet? |
Yep, I have same situation. |
@vchirikov one idea...can you try to exclude autogenerated file with filter? for instance |
@MarcoRossignoli yes, with your |
@vchirikov it's not the "only" compatibility issue coverlet has got with other components and environment maybe we could add to "know issue" https://github.com/tonerdo/coverlet/blob/master/Documentation/KnowIssues.md |
@iron9light @duncanp-sonar can you tell me if issue is solved? |
close for stale conversation, feel free to re-open if needed. |
SonarSource/sonar-scanner-msbuild#756
My repo: https://github.com/iron9light/HOCON.Json
It CI with Azure pipelines.
When I add
/p:UseSourceLink=true
for dotnet test, it will not generate valid coverage file (opencover format) (sonar cannot get coverage info from the output coverage file).When removed
/p:UseSourceLink=true
everything works fine.coverlet.msbuild version: 2.6.3
The text was updated successfully, but these errors were encountered: