-
Notifications
You must be signed in to change notification settings - Fork 1k
Move to xunit.v3 #13540
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
base: main
Are you sure you want to change the base?
Move to xunit.v3 #13540
Conversation
192075f
to
1d61e6e
Compare
faa2b43
to
79b74b2
Compare
...m.Windows.Forms/System/Windows/Forms/ComponentModel/Com2Interop/COM2PictureConverterTests.cs
Show resolved
Hide resolved
Test
|
For The PR description says that changing DPI should affect min size and max size, but the test asserts that they actually don't change. The test as written in the PR contained a cc @RussKie |
Regarding So, Line 117 in 86f7d0f
|
...System.Windows.Forms/System/Windows/Forms/ComponentModel/COM2Interop/COM2PictureConverter.cs
Outdated
Show resolved
Hide resolved
src/test/unit/System.Windows.Forms/System/Windows/Forms/ClipboardTests.cs
Show resolved
Hide resolved
src/System.Windows.Forms.Analyzers/tests/UnitTests/System.Windows.Forms.Analyzers.Tests.csproj
Show resolved
Hide resolved
src/System.Private.Windows.Core/tests/BinaryFormatTests/BinaryFormatTests.csproj
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13540 +/- ##
===================================================
+ Coverage 76.59901% 76.61066% +0.01164%
===================================================
Files 3230 3229 -1
Lines 639161 639163 +2
Branches 47297 47296 -1
===================================================
+ Hits 489591 489667 +76
+ Misses 145988 145920 -68
+ Partials 3582 3576 -6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Thanks for review @JeremyKuhne. I addressed your comment about |
@LeafShi1 can you help investigate any remaining test failures related to this? |
@Youssef1313 The actual problem cannot be seen from the current failure log, and the failure case cannot be reproduced in the local environment. You can try to optimize these two failure cases so that the failure reason can be seen more clearly when it fails. Perhaps you can try to give ToolStripItem an initial name and assert whether the ToolStripItem name is equal
|
f48877d
to
6feb3aa
Compare
One thing to explore here is that the built assemblies in the x86 job are actually AnyCPU. Previously, they would run under an x86 dotnet.exe. But after the change in this PR, they are run as x64. For xunit 2, it happens via https://github.com/dotnet/arcade/blob/b305863166c975997aafee78cf69942e7d2f862a/src/Microsoft.DotNet.Arcade.Sdk/tools/XUnit/XUnit.Runner.targets#L31 |
Note: For ToolStrip_GetNextItem_ReturnsBackwardItem, I can reproduce it locally. It happens only when the whole test class is run, and not only the specific test. So there must be some state of a previous test affecting it. Note that the order of tests is impacted between xunit 2 and xunit.v3. |
@JeremyKuhne @merriemcgaw @LeafShi1 This PR is ready for review, other than a small issue where building x86 actually produces a 64-bit apphost. This previously used to work with Arcade because it used EDIT: Found a fix/workaround in 8480526. Setting |
This reverts commit 8480526.
Last commit is breaking analyzers. Reverting. @JeremyKuhne @merriemcgaw @LeafShi1 Can you please help with getting things to build correctly and have the right apphost? |
Fixes #
Proposed changes
Customer Impact
Regression?
Risk
Test methodology
Microsoft Reviewers: Open in CodeFlow