Damian Hickey
|
0afe76f186
|
Migrate all test projects to xUnit v3 and Microsoft Test Platform
Major Changes:
- Upgraded from xunit.core v2 to xunit.v3 (3.1.0)
- Replaced Microsoft.NET.Test.Sdk with Microsoft.Testing.Platform.MSBuild
(1.8.4)
- Updated test projects to use <OutputType>Exe</OutputType> (required for
xUnit v3)
Package Updates:
- Replaced Verify.Xunit with Verify.XunitV3 (31.0.0)
- Replaced Meziantou.Extensions.Logging.Xunit with
MartinCostello.Logging.XUnit.v3 (0.6.0)
- Replaced Serilog.Sinks.XUnit with Serilog.Sinks.XUnit3 (1.1.0)
- Removed Xunit.SkippableFact (xUnit v3 has built-in skipping)
- Removed Microsoft.SourceLink.GitHub from test projects
- Updated Serilog to 4.3.0 (required by Serilog.Sinks.XUnit3)
Code Changes:
- Updated IAsyncLifetime implementations (Task → ValueTask,
Task.CompletedTask → default)
- Removed 'using Xunit.Abstractions;' from 37 files
- Replaced Skip.If() with Assert.Skip() for conditional test skipping
- Replaced [SkippableFact] with [Fact] and [SkippableTheory] with [Theory]
- Updated BeforeAfterTestAttribute to IBeforeAfterTestAttribute in xUnit v3
- Fixed TheoryData syntax for xUnit v3 (collection expressions)
Playwright Integration:
- Removed Retries folder (unused xUnit v2 extensibility code)
- Replaced Microsoft.Playwright.Xunit with Microsoft.Playwright
- Removed PageTest base class, implemented Playwright directly
- Added IAsyncLifetime implementation with manual browser initialization
|
2025-10-15 11:58:13 +02:00 |
|