-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathTests.Build.props
More file actions
40 lines (38 loc) · 2 KB
/
Copy pathTests.Build.props
File metadata and controls
40 lines (38 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="utf-8"?>
<!--
Shared configuration for the xUnit v3 test projects. Imported explicitly by
each *.Tests.csproj, mirroring how the production projects import
Analysis.Build.props.
-->
<Project>
<PropertyGroup>
<!-- xUnit v3 test assemblies are self-executing - the runner supplies the
entry point - so a test project has to build as an executable. -->
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<!-- Every database-backed suite shares schemas between target frameworks, so
running the net9.0 and net10.0 suites concurrently makes them drop each
other's schemas mid-test. CI never hit this because each job names a
single target framework explicitly, but a bare `dotnet test` locally
does, and did so on the Postgres suite well before the xUnit v3
migration. -->
<TestTfmsInParallel>false</TestTfmsInParallel>
</PropertyGroup>
<ItemGroup>
<!-- ExcludeAssets="analyzers" keeps xunit.analyzers out of the build. This
suite predates them, and xUnit1051 alone (pass
TestContext.Current.CancellationToken to async calls) fires on
hundreds of async database calls. Adopting the analyzers is
deliberate follow-up work, not part of the v2 -> v3 conversion. -->
<PackageReference Include="xunit.v3" ExcludeAssets="analyzers" />
<PackageReference Include="xunit.runner.visualstudio">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="coverlet.collector">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>