From 76a23f3ca01c254642fe1deeda49cf61d77e18b4 Mon Sep 17 00:00:00 2001 From: "o.hauff" Date: Sun, 15 Aug 2021 16:52:30 +0000 Subject: [PATCH] Copied from sharee.bike App project. [skip ci] --- UnitTests.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 UnitTests.yml diff --git a/UnitTests.yml b/UnitTests.yml new file mode 100644 index 0000000..2c9f848 --- /dev/null +++ b/UnitTests.yml @@ -0,0 +1,48 @@ +# ASP.NET Core +# Build and test ASP.NET Core projects targeting .NET Core. +# Add steps that run tests, create a NuGet package, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- master + +pool: + vmImage: 'windows-latest' + +variables: + buildConfiguration: 'Release' + +jobs: + +- job: RunUnittests + displayName: "Run Unit Tests" + + steps: + # Get code from Open Source repo. + # https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#specify-multiple-repositories + - checkout: git://sharee.bike App/Code + + - task: DotNetCoreCLI@2 + displayName: "Run TestLockItShared Unit Tests" + inputs: + command: 'test' + projects: 'TestLockItShared/TestLockItShared.csproj' + configuration: '$(buildConfiguration)' + + - task: DotNetCoreCLI@2 + displayName: "Run TestShareeLib Unit Tests" + inputs: + command: 'test' + projects: 'TestShareeLib/TestShareeLib.csproj' + configuration: '$(buildConfiguration)' + +# Infos about test filters see +# https://docs.microsoft.com/en-us/previous-versions/jj155796(v=vs.140)?redirectedfrom=MSDN + - task: VSTest@2 + inputs: + testSelector: 'testAssemblies' + testAssemblyVer2: | + **\TestShareeLib.dll + !**\obj\** + searchFolder: '$(System.DefaultWorkingDirectory)' + testFiltercriteria: 'TestCategory!=Explicit&TestCategory!=RequiresCOPRI&TestCategory!=RequiresCOPRI.Live&TestCategory!=RequiresCOPRI.Devel'