Add support for xunit v3 🆕✨
Xunit v3 contains many major architectural changes which means the same package that supports logging for xunit v2 cannot be used with xunit v3.
The equivalent NuGet package to support logging for xunit v3 is the new MartinCostello.Logging.XUnit.v3 package.
To migrate usage of MartinCostello.Logging.XUnit
to MartinCostello.Logging.XUnit.v3
for xunit v3:
-
Follow the relevant steps to migrate any test projects from xunit v2 to v3. The most relevant change in xunit v3 for this library is that the
ITestOutputHelper
type has moved from theXunit.Abstractions
namespace toXunit
. -
Change any package references from
MartinCostello.Logging.XUnit
toMartinCostello.Logging.XUnit.v3
.- <PackageReference Include="MartinCostello.Logging.XUnit" Version="0.5.0" /> + <PackageReference Include="MartinCostello.Logging.XUnit.v3" Version="0.5.0" />
Support for xunit v2 continues with the existing MartinCostello.Logging.XUnit package.
What's Changed
- Pool loggers by @martincostello in #765
- Update to .NET 9 by @martincostello in #566
- Support xunit v3 by @martincostello in #804
- Add xunit v3 migration guide by @martincostello in #805
Full Changelog: v0.4.0...v0.5.0