Skip to content

Commit

Permalink
Move test references to Directory.Build.props
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Apr 21, 2024
1 parent 56701e7 commit a337b7a
Show file tree
Hide file tree
Showing 19 changed files with 33 additions and 137 deletions.
9 changes: 1 addition & 8 deletions src/Cake.Issues.DocFx.Tests/Cake.Issues.DocFx.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.DocFx addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -27,14 +28,6 @@
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.DocFx\Cake.Issues.DocFx.csproj" />
Expand Down
9 changes: 1 addition & 8 deletions src/Cake.Issues.EsLint.Tests/Cake.Issues.EsLint.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.EsLint addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -24,14 +25,6 @@
<EmbeddedResource Include="Testfiles\JsonLogFileFormat\jsonFormatWindows.json" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.EsLint\Cake.Issues.EsLint.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.GitRepository addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -16,14 +17,6 @@
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.GitRepository\Cake.Issues.GitRepository.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.InspectCode addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -25,14 +26,6 @@
<EmbeddedResource Include="Testfiles\WithWikiUrl.xml" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.InspectCode\Cake.Issues.InspectCode.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.Markdownlint addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand Down Expand Up @@ -49,14 +50,6 @@
<None Include="app.config" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.Markdownlint\Cake.Issues.Markdownlint.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Product>Cake.Issues</Product>
<Copyright>Copyright © Cake Issues contributors</Copyright>
<Description>Tests for the Cake.Issues.MsBuild addin</Description>
Expand All @@ -22,14 +23,6 @@
<EmbeddedResource Include="Testfiles\XmlFileLoggerLogFileFormat\*.xml" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.MsBuild\Cake.Issues.MsBuild.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.PullRequests.AppVeyor addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -12,14 +13,6 @@
<CodeAnalysisRuleSet>..\Cake.Issues.Tests.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.PullRequests.AppVeyor\Cake.Issues.PullRequests.AppVeyor.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Product>Cake.Issues.PullRequests.AzureDevOps</Product>
<Copyright>Copyright © BBT Software AG and contributors</Copyright>
<Description>Tests for the Cake.Issues.PullRequests.AzureDevOps addin</Description>
Expand All @@ -13,11 +14,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Cake.AzureDevOps" Version="4.0.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.PullRequests.GitHubActions addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -12,14 +13,6 @@
<CodeAnalysisRuleSet>..\Cake.Issues.Tests.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.PullRequests.GitHubActions\Cake.Issues.PullRequests.GitHubActions.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.PullRequests addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -12,14 +13,6 @@
<CodeAnalysisRuleSet>..\Cake.Issues.Tests.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.PullRequests\Cake.Issues.PullRequests.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.Reporting.Console addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -24,14 +25,6 @@
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.Reporting.Console\Cake.Issues.Reporting.Console.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.Reporting.Generic addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand Down Expand Up @@ -31,11 +32,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="HtmlAgilityPack" Version="1.11.60" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.Reporting.Sarif addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -16,14 +17,6 @@
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.Reporting.Sarif\Cake.Issues.Reporting.Sarif.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Copyright>Copyright © Cake Issues contributors</Copyright>
<Description>Tests for the Cake.Issues.Reporting addin</Description>
<Authors>Cake Issues contributors</Authors>
Expand All @@ -11,14 +12,6 @@
<CodeAnalysisRuleSet>..\Cake.Issues.Tests.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.Reporting\Cake.Issues.Reporting.csproj" />
Expand Down
10 changes: 2 additions & 8 deletions src/Cake.Issues.Sarif.Tests/Cake.Issues.Sarif.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.Sarif addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -20,14 +22,6 @@
<EmbeddedResource Include="Testfiles\rule-metadata-1.json" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.Sarif\Cake.Issues.Sarif.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues.Terraform addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -25,14 +26,6 @@
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues.Terraform\Cake.Issues.Terraform.csproj" />
Expand Down
7 changes: 0 additions & 7 deletions src/Cake.Issues.Testing/Cake.Issues.Testing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit">
<Version>2.7.1</Version>
</PackageReference>
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" />
<PackageReference Include="Shouldly">
<Version>4.2.1</Version>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 1 addition & 8 deletions src/Cake.Issues.Tests/Cake.Issues.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Description>Tests for the Cake.Issues addin</Description>
<Authors>Cake Issues contributors</Authors>
<Copyright>Copyright © Cake Issues contributors</Copyright>
Expand All @@ -22,14 +23,6 @@
<EmbeddedResource Include="Testfiles\Build.log" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Issues.Testing\Cake.Issues.Testing.csproj" />
<ProjectReference Include="..\Cake.Issues\Cake.Issues.csproj" />
Expand Down
Loading

0 comments on commit a337b7a

Please sign in to comment.