Skip to content

Commit

Permalink
test: Simplified used packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Oct 11, 2024
1 parent 71f58a1 commit 6716d2e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
7 changes: 7 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup Label="Auditing">
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
<WarningsAsErrors>$(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
</PropertyGroup>

</Project>
7 changes: 7 additions & 0 deletions src/libs/AutoSDK.CLI/Resources/src_Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup Label="Auditing">
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
<WarningsAsErrors>$(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup Label="Base packages">
<ItemGroup>
<PackageReference Include="MSTest" Version="3.6.1" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.5.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.5.2" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
</ItemGroup>

Expand Down
7 changes: 0 additions & 7 deletions src/libs/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,4 @@
<AnalysisMode>All</AnalysisMode>
</PropertyGroup>

<PropertyGroup Label="Auditing">
<NuGetAudit>true</NuGetAudit>
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
<WarningsAsErrors>$(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
</PropertyGroup>

</Project>
5 changes: 2 additions & 3 deletions src/tests/AutoSDK.SnapshotTests/AutoSDK.SnapshotTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@
</PackageReference>
<PackageReference Include="H.Generators.Extensions" Version="1.22.0" />
<PackageReference Include="H.Generators.Tests.Extensions" Version="1.22.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.OpenApi" Version="1.6.22" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="MSTest" Version="3.6.1" />
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<ItemGroup Label="Generator tests packages">
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.MSTest" Version="1.1.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
<PackageReference Include="Verify.MSTest" Version="26.6.0" />
<PackageReference Include="Verify.SourceGenerators" Version="2.5.0" />
<PackageReference Include="H.Resources.Generator" Version="1.6.1">
Expand Down
4 changes: 1 addition & 3 deletions src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.1" />
<PackageReference Include="MSTest" Version="3.6.1" />
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Verify.MSTest" Version="26.6.0" />
</ItemGroup>
Expand Down

0 comments on commit 6716d2e

Please sign in to comment.