|
34 | 34 |
|
35 | 35 | <IsUnitTestProject>false</IsUnitTestProject> |
36 | 36 | <DisableApiAnalyzers>false</DisableApiAnalyzers> |
37 | | - <IsUnitTestProject Condition="$(MSBuildProjectName.EndsWith('.Tests')) or $(MSBuildProjectName.EndsWith('.Testing'))">true</IsUnitTestProject> |
| 37 | + <IsUnitTestProject Condition="$(MSBuildProjectName.EndsWith('.Tests'))">true</IsUnitTestProject> |
38 | 38 | </PropertyGroup> |
39 | 39 |
|
40 | 40 | <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> |
41 | 41 | <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> |
42 | 42 | </PropertyGroup> |
43 | 43 |
|
| 44 | + <PropertyGroup Condition=" '$(IsUnitTestProject)' == 'true' "> |
| 45 | + <OutputType>Exe</OutputType> |
| 46 | + <EnableNUnitRunner>true</EnableNUnitRunner> |
| 47 | + </PropertyGroup> |
| 48 | + |
44 | 49 | <ItemGroup> |
45 | 50 | <PackageReference Include="Roslynator.Analyzers"> |
46 | 51 | <PrivateAssets>all</PrivateAssets> |
|
51 | 56 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
52 | 57 | </PackageReference> |
53 | 58 | </ItemGroup> |
54 | | - <ItemGroup Condition=" '$(IsUnitTestProject)' == 'false' and $(MSBuildProjectName.EndsWith('.Schema')) == 'false' and '$(DisableApiAnalyzers)' == 'false'"> |
| 59 | + <ItemGroup Condition=" '$(DisableApiAnalyzers)' == 'false' and '$(IsUnitTestProject)' == 'false' and $(MSBuildProjectName.EndsWith('.Schema')) == 'false' and $(MSBuildProjectName.EndsWith('.Testing')) == 'false' "> |
55 | 60 | <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers"> |
56 | 61 | <PrivateAssets>all</PrivateAssets> |
57 | 62 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
|
64 | 69 |
|
65 | 70 | <PackageReference Include="NUnit" /> |
66 | 71 | <PackageReference Include="NUnit3TestAdapter" /> |
67 | | - <PackageReference Include="JunitXml.TestLogger" /> |
| 72 | +<!-- <PackageReference Include="JunitXml.TestLogger" />--> |
68 | 73 | <PackageReference Include="Shouldly" /> |
69 | 74 |
|
70 | 75 | <PackageReference Include="coverlet.msbuild"> |
|
77 | 82 | </PackageReference> |
78 | 83 |
|
79 | 84 | </ItemGroup> |
80 | | - <ItemGroup Condition=" '$(IsUnitTestProject)' == 'true' and $(MSBuildProjectName.EndsWith('.Tests'))"> |
| 85 | + <ItemGroup Condition=" '$(IsUnitTestProject)' == 'true' "> |
81 | 86 | <ProjectReference Include="..\GitVersion.Testing\GitVersion.Testing.csproj" /> |
82 | 87 |
|
83 | | - <Using Include="GitVersion.Testing" /> |
84 | 88 | <Using Include="NSubstitute" /> |
85 | 89 | <Using Include="NUnit.Framework" /> |
86 | 90 | <Using Include="Shouldly" /> |
| 91 | + <Using Include="GitVersion.Testing" /> |
87 | 92 | </ItemGroup> |
88 | 93 |
|
89 | 94 | <ItemGroup> |
|
0 commit comments