-
Notifications
You must be signed in to change notification settings - Fork 388
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
[BUG] Type initializer errors after updating from 6.0.0 to 6.0.1 #1629
Comments
I got the same issue, interestingly the build worked fine on ubuntu github runner but failed on local builds/tests (on windows) |
I believe I have the same issue too: https://github.com/santisq/PSCompression/actions/runs/8039618762/job/21956826632?pr=22#step:5:49 |
Thanks a lot for reporting this. I can reproduce it with simply |
The same here destructurama/attributed#109 |
I start working on this and see if I can figure something out. |
So the problem only occurs for none- I think the issue is here https://github.com/coverlet-coverage/coverlet/blob/master/src/coverlet.msbuild.tasks/coverlet.msbuild.props#L22-L23. We can't use the I see two options here. We could move back to build |
I would go for now |
I think I would have found a condition that works but keeping it |
I'm getting a similar error with Test log
Runtimes
SDKs
|
Hi guys, we finally merged everything we broke with the last release. We would really appreciate if someone could give it a try. |
Fixed in destructurama/attributed#109 |
We now have a new official release |
Thank you. |
Describe the bug
After upgrading from 6.0.0 to 6.0.1 the tests fail with errors initializing Coverlet
To Reproduce
Updated from 6.0.0 to 6.0.1.
Project being tested targets netstandard2.0. Only external reference is Newtonsoft.Json 13.0.3
Test project targets 4.7.2 and has the following references:
Expected behavior
Tests to run without crashing
Actual behavior
Configuration (please complete the following information):
Please provide more information on your .NET configuration:
* Which coverlet package and version was used? 6.0.1
* Which version of .NET is the code running on? 4.7.2
* What OS and version, and what distro if applicable? Windows 2022 (Azure CI agent windows-latest)
* What is the architecture (x64, x86, ARM, ARM64)?
* Do you know whether it is specific to that configuration? Don't know
Additional context
Current command being used to execute the tests:
dotnet test D:\a\1\s\tests\UnitTests\Auditing.Tests --configuration Release --no-restore --no-build --logger trx --framework net472 /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:ExcludeByFile=**/GitVersionInformation.* /p:CoverletOutput=D:\a\TestResults\coverage.net472.1.xml
Currently I'm not able to switch execution mode to the --collect version due to the test CI templates being shared by all our or organizational repositories. So cannot test with the --collect:"XPlat Code Coverage" option
The text was updated successfully, but these errors were encountered: