Skip to content

Commit 9ac8052

Browse files
authored
Add skeleton tests project (#36)
* Add tests project * Update gitignore
1 parent 5e92542 commit 9ac8052

File tree

6 files changed

+43
-4
lines changed

6 files changed

+43
-4
lines changed

Hawaii-Cli/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

66
# Generated Files
7-
/bin
8-
/obj
7+
**/bin
8+
**/obj
99

1010
# Local History for Visual Studio
1111
.localhistory/

Hawaii-Cli/hawaii-cli.sln

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.1.32407.343
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "hawaii-cli", "hawaii-cli.csproj", "{55528027-AC5E-4B3A-901A-BAE649C44C07}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "hawaii-cli", "src\hawaii-cli.csproj", "{55528027-AC5E-4B3A-901A-BAE649C44C07}"
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.DataGateway.Config", "..\hawaii-gql\DataGateway.Config\Azure.DataGateway.Config.csproj", "{3D826537-5771-4777-B98F-864A0C2447E3}"
99
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tests", "tests\tests.csproj", "{2D9D5A56-2025-43BA-97D6-47385C2890FE}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
2123
{3D826537-5771-4777-B98F-864A0C2447E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{3D826537-5771-4777-B98F-864A0C2447E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{3D826537-5771-4777-B98F-864A0C2447E3}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{2D9D5A56-2025-43BA-97D6-47385C2890FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{2D9D5A56-2025-43BA-97D6-47385C2890FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{2D9D5A56-2025-43BA-97D6-47385C2890FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{2D9D5A56-2025-43BA-97D6-47385C2890FE}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

Hawaii-Cli/hawaii-cli.csproj renamed to Hawaii-Cli/src/hawaii-cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<ItemGroup>
2121
<Reference Include="Azure.DataGateway.Config">
22-
<HintPath>..\hawaii-gql\DataGateway.Config\bin\Debug\net6.0\Azure.DataGateway.Config.dll</HintPath>
22+
<HintPath>..\..\hawaii-gql\DataGateway.Config\bin\Debug\net6.0\Azure.DataGateway.Config.dll</HintPath>
2323
</Reference>
2424
</ItemGroup>
2525

Hawaii-Cli/tests/UnitTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace tests;
2+
3+
[TestClass]
4+
public class UnitTest
5+
{
6+
[TestMethod]
7+
public void TestMethod1()
8+
{
9+
}
10+
}

Hawaii-Cli/tests/Usings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
global using Microsoft.VisualStudio.TestTools.UnitTesting;

Hawaii-Cli/tests/tests.csproj

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
8+
<IsPackable>false</IsPackable>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
13+
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
14+
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
15+
<PackageReference Include="coverlet.collector" Version="3.1.2" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<ProjectReference Include="..\src\hawaii-cli.csproj" />
20+
</ItemGroup>
21+
22+
</Project>

0 commit comments

Comments
 (0)