Skip to content

Commit

Permalink
feat: add test project
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy committed Aug 14, 2023
1 parent 4bc7ab6 commit 498e827
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
build-target: Containerize_OpsWeb
image-file: ops-web-image.tar
image-name: ops-web
test-project: Ops.Web
test-project: Ops.Web.Tests
build-project: Ops.Web
semver: ${{ needs.set-release-version.outputs.version }}
secrets: inherit
Expand Down
7 changes: 7 additions & 0 deletions Ops.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,25 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
SolutionInfo.cs = SolutionInfo.cs
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ops.Web.Tests", "test\Ops.Web.Tests\Ops.Web.Tests.csproj", "{19EB08BE-7086-47B2-BD56-22E675B86D9F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1B99CF5A-159F-4434-AAAA-996C7B50A507} = {8ED67A50-116A-4250-BBAB-EED6377244B9}
{19EB08BE-7086-47B2-BD56-22E675B86D9F} = {42A894F8-BF47-43D2-9A25-3E35CE133E6E}
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1B99CF5A-159F-4434-AAAA-996C7B50A507}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B99CF5A-159F-4434-AAAA-996C7B50A507}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B99CF5A-159F-4434-AAAA-996C7B50A507}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B99CF5A-159F-4434-AAAA-996C7B50A507}.Release|Any CPU.Build.0 = Release|Any CPU
{19EB08BE-7086-47B2-BD56-22E675B86D9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19EB08BE-7086-47B2-BD56-22E675B86D9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19EB08BE-7086-47B2-BD56-22E675B86D9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{19EB08BE-7086-47B2-BD56-22E675B86D9F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
24 changes: 24 additions & 0 deletions test/Ops.Web.Tests/Ops.Web.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>
11 changes: 11 additions & 0 deletions test/Ops.Web.Tests/Test1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Ops.Web.Tests
{
using Xunit;

public class Test1
{
[Fact]
public void Dummy()
{ }
}
}

0 comments on commit 498e827

Please sign in to comment.