From 498e82792a973710f364ea4e8f291dd37283e1b3 Mon Sep 17 00:00:00 2001 From: emalfroy Date: Mon, 14 Aug 2023 14:38:24 +0200 Subject: [PATCH] feat: add test project --- .github/workflows/release.yml | 2 +- Ops.sln | 7 +++++++ test/Ops.Web.Tests/Ops.Web.Tests.csproj | 24 ++++++++++++++++++++++++ test/Ops.Web.Tests/Test1.cs | 11 +++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 test/Ops.Web.Tests/Ops.Web.Tests.csproj create mode 100644 test/Ops.Web.Tests/Test1.cs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53b82f7..d4c1895 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/Ops.sln b/Ops.sln index 1d2a241..789d336 100644 --- a/Ops.sln +++ b/Ops.sln @@ -19,6 +19,8 @@ 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 @@ -26,11 +28,16 @@ Global 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 diff --git a/test/Ops.Web.Tests/Ops.Web.Tests.csproj b/test/Ops.Web.Tests/Ops.Web.Tests.csproj new file mode 100644 index 0000000..97c61bb --- /dev/null +++ b/test/Ops.Web.Tests/Ops.Web.Tests.csproj @@ -0,0 +1,24 @@ + + + + net6.0 + enable + enable + + false + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/test/Ops.Web.Tests/Test1.cs b/test/Ops.Web.Tests/Test1.cs new file mode 100644 index 0000000..426ffce --- /dev/null +++ b/test/Ops.Web.Tests/Test1.cs @@ -0,0 +1,11 @@ +namespace Ops.Web.Tests +{ + using Xunit; + + public class Test1 + { + [Fact] + public void Dummy() + { } + } +}