Skip to content

Update SharedInfrastructure for Xunit V3#2854

Open
stefannikolei wants to merge 5 commits into
SixLabors:mainfrom
stefannikolei:sn/upd/xunit
Open

Update SharedInfrastructure for Xunit V3#2854
stefannikolei wants to merge 5 commits into
SixLabors:mainfrom
stefannikolei:sn/upd/xunit

Conversation

@stefannikolei
Copy link
Copy Markdown
Contributor

Submodule points to my fork for iterating faster. When this works, I will create a mr in the SharedInfrastructure project

@stefannikolei
Copy link
Copy Markdown
Contributor Author

I started looking into it.

Gonna take longer. This is not a small change.

# Conflicts:
#	shared-infrastructure
@JimBobSquarePants
Copy link
Copy Markdown
Member

You’re a brave man! XUnit versioning is a shambles.

@stefannikolei
Copy link
Copy Markdown
Contributor Author

stefannikolei commented May 21, 2026

@JimBobSquarePants Just small changes then it should work.

But those changes are 🤮

Will have to clean it up. I just saw that there are some unrelated changes.

Breaking changes addressed:
- Update xunit.v3 to 3.2.2 and xunit.runner.visualstudio to 3.1.5
- Remove Microsoft.DotNet.XUnitExtensions (conflicts with xunit.v3 via xunit.core v2)
- Replace ConditionalFact/ConditionalTheory with Fact/Theory SkipUnless/SkipWhen/SkipType
- Remove 'using Xunit.Abstractions' (ITestOutputHelper now in Xunit namespace globally)
- Fix TestFrameworkAttribute: string args → typeof(T) form
- Fix XunitTestFramework ctor: no longer takes IMessageSink
- Fix BeforeAfterTestAttribute Before/After: added IXunitTest parameter, use Xunit.v3 ns
- Fix DataAttribute: new GetData signature (DisposalTracker), add SupportsDiscoveryEnumeration()
- Fix IXunitSerializable/IXunitSerializationInfo: add 'using Xunit.Sdk' to all consumers
- Fix BasicSerializer: implement new IXunitSerializationInfo.GetValue(string) returning object?
  Store type info in dump format (key:TypeAQN:value) to enable typed reconstruction
- Fix TheoryData<T> CS0121 ambiguity on C# 12/net8.0: add explicit casts (T)value
  Affects ExifValuesTests, PixelOperationsTests, QuantizerTests, DitherTests,
  TestImageProviderTests, RotateTests, L8Tests, La16Tests
- Fix PngEncoderTests: TheoryData<T> now yields TheoryDataRow<T>, not object[]
when used in nameof it is not allowed to be a filed it must be a property
@stefannikolei
Copy link
Copy Markdown
Contributor Author

@JimBobSquarePants so i finale succeeded. If you want you can have a look

@stefannikolei stefannikolei marked this pull request as ready for review May 21, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants