File tree Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ <Project >
2
+ <Target Name =" _SetVSTestLogger" BeforeTargets =" VSTest" Condition =" '$(TrxLogFileNameSuffix)' != '' " >
3
+ <PropertyGroup >
4
+ <VSTestLogger >trx%3BLogFileName=$(AssemblyName)-$(TargetFramework).trx</VSTestLogger >
5
+ </PropertyGroup >
6
+ </Target >
7
+ </Project >
Original file line number Diff line number Diff line change 26
26
<PackageVersion Include =" FluentAssertions" Version =" 6.12.0" />
27
27
<PackageVersion Include =" MartinCostello.Logging.XUnit" Version =" 0.4.0" />
28
28
<PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" 17.10.0" />
29
- <PackageVersion Include =" xunit" Version =" 2.9.0 " />
29
+ <PackageVersion Include =" xunit" Version =" 2.9.1 " />
30
30
<PackageVersion Include =" xunit.runner.visualstudio" Version =" 2.8.2" />
31
+ <PackageVersion Include =" xunit.extensibility.execution" Version =" 2.9.1" />
31
32
<!-- External packages -->
32
33
<PackageVersion Include =" OllamaSharp" Version =" 3.0.7" />
33
34
</ItemGroup >
Original file line number Diff line number Diff line change 6
6
<Nullable >enable</Nullable >
7
7
</PropertyGroup >
8
8
9
+ <ItemGroup >
10
+ <!--
11
+ This intentionally does not reference 'xunit', 'xunit.core', or any runner packages.
12
+ XUnit recommends only using xunit.extensibility.*, xunit.assert, and xunit.abstractions for packages which "extend" xunit.
13
+ This allows consumers to decide which type of xunit runner they want to use to run these tests,
14
+ and avoids problems with `dotnet pack`.
15
+ See https://xunit.github.io/docs/nuget-packages and the special note in https://xunit.github.io/releases/2.3.
16
+ -->
17
+ <PackageReference Include =" xunit.extensibility.execution" />
18
+ </ItemGroup >
9
19
</Project >
Original file line number Diff line number Diff line change 10
10
namespace Microsoft . TestUtilities ;
11
11
12
12
[ AttributeUsage ( AttributeTargets . Method , AllowMultiple = false ) ]
13
- [ XunitTestCaseDiscoverer ( "Microsoft.TestUtilities." + nameof ( ConditionalFactDiscoverer ) , "Microsoft.TestUtilities " ) ]
13
+ [ XunitTestCaseDiscoverer ( "Microsoft.TestUtilities." + nameof ( ConditionalFactDiscoverer ) , "Aspire.CommunityToolkit.Testing " ) ]
14
14
public class ConditionalFactAttribute : FactAttribute
15
15
{
16
16
}
Original file line number Diff line number Diff line change 10
10
namespace Microsoft . TestUtilities ;
11
11
12
12
[ AttributeUsage ( AttributeTargets . Method , AllowMultiple = false ) ]
13
- [ XunitTestCaseDiscoverer ( "Microsoft.TestUtilities." + nameof ( ConditionalTheoryDiscoverer ) , "Microsoft.TestUtilities " ) ]
13
+ [ XunitTestCaseDiscoverer ( "Microsoft.TestUtilities." + nameof ( ConditionalTheoryDiscoverer ) , "Aspire.CommunityToolkit.Testing " ) ]
14
14
public class ConditionalTheoryAttribute : TheoryAttribute
15
15
{
16
16
}
You can’t perform that action at this time.
0 commit comments