Support xunit.v3 in Microsoft.DotNet.XUnitExtensions#15668
Conversation
src/Microsoft.DotNet.XUnitV3Extensions/src/Microsoft.DotNet.XUnitV3Extensions.csproj
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.XUnitV3Extensions/src/Microsoft.DotNet.XUnitV3Extensions.csproj
Outdated
Show resolved
Hide resolved
yeah I think we should keep it. that said, now that I look at it I wonder why ConditionalFact/Theory don't use the same approach as https://github.com/dotnet/arcade/blob/main/src/Microsoft.DotNet.XUnitExtensions/src/Attributes/LinuxOnlyFactAttribute.cs where we set the |
|
@akoeplinger I don't know about the history. But there is a fundamental difference between both approaches. Using
I'd tend to avoid making fundamental/behavioral changes as part of a simple migration to xunit.v3. |
|
Yeah. It's just that we've been thinking of removing the need for the I agree we can tackle that separately. |
|
@akoeplinger Thanks! Is this good to merge soon then (probably with a second review)? |
Part of #15654
There are some types that used to be present in Microsoft.DotNet.XUnitExtensions but no longer present in Microsoft.DotNet.XUnit3Extensions:
ConditionalFactAttributeandConditionalTheoryAttribute:FactAttributeandTheoryAttributeinstead, and replacethrow new SkipTestException(...)withAssert.Skip(...).ParallelTheoryAttribute: No replacement for that currently. I can't find any usages of it withgrep.app. If requested by someone, we can work on adding it.Manually tested scenarios:
ConditionalClassAttribute
Running with
--filter-query /[category!=failing]:DotNetOnlyFact
dotnet test -f net8.0: Test is run and fails.dotnet test -f net472: Test isn't run and executable finishes with exit code 8 (zero tests ran)