Skip to content

Commit

Permalink
Add new project for unit tests (xUnit)
Browse files Browse the repository at this point in the history
  • Loading branch information
anttimaki committed Nov 3, 2021
1 parent 34fb05d commit cd29c87
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
ThunderstoreCLI*/[Bb]in/
ThunderstoreCLI*/[Oo]bj/
[Ll]og/
[Ll]ogs/

Expand Down
26 changes: 26 additions & 0 deletions ThunderstoreCLI.Tests/ThunderstoreCLI.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ThunderstoreCLI\ThunderstoreCLI.csproj" />
</ItemGroup>

</Project>
6 changes: 6 additions & 0 deletions ThunderstoreCLI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.29201.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ThunderstoreCLI", "ThunderstoreCLI\ThunderstoreCLI.csproj", "{4C460BF2-546B-43F1-9661-1281F2EF05B8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ThunderstoreCLI.Tests", "ThunderstoreCLI.Tests\ThunderstoreCLI.Tests.csproj", "{EFBF7611-F017-464F-9EF4-9695164FCEEB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +17,10 @@ Global
{4C460BF2-546B-43F1-9661-1281F2EF05B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4C460BF2-546B-43F1-9661-1281F2EF05B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4C460BF2-546B-43F1-9661-1281F2EF05B8}.Release|Any CPU.Build.0 = Release|Any CPU
{EFBF7611-F017-464F-9EF4-9695164FCEEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EFBF7611-F017-464F-9EF4-9695164FCEEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EFBF7611-F017-464F-9EF4-9695164FCEEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EFBF7611-F017-464F-9EF4-9695164FCEEB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit cd29c87

Please sign in to comment.