From c543cf46ec877afb67cf23a7b82845907a29f9d9 Mon Sep 17 00:00:00 2001 From: "o.hauff" Date: Sun, 23 Jan 2022 10:13:27 +0000 Subject: [PATCH] Extended. --- UnitTests.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 52 insertions(+), 7 deletions(-) diff --git a/UnitTests.yml b/UnitTests.yml index 1313217..59661aa 100644 --- a/UnitTests.yml +++ b/UnitTests.yml @@ -23,27 +23,72 @@ jobs: - checkout: git://sharee.bike App/Code - task: DotNetCoreCLI@2 - displayName: "Run TestLockItShared Unit Tests" + displayName: "Build TestLockItShared Unit Tests" inputs: - command: 'test' - projects: 'TestLockItShared/TestLockItShared.csproj' + command: 'build' + projects: '**/TestLockItShared.csproj' configuration: '$(buildConfiguration)' - task: DotNetCoreCLI@2 - displayName: "Run TestShareeLib Unit Tests" + displayName: "Build TestLockItBLE Unit Tests" inputs: - command: 'test' - projects: 'TestShareeLib/TestShareeLib.csproj' + command: 'build' + projects: '**/TestLockItBLE.csproj' + configuration: '$(buildConfiguration)' + + - task: DotNetCoreCLI@2 + displayName: "Build TestShareeLib Unit Tests" + inputs: + command: 'build' + projects: '**/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 + displayName: "Run tests TestLockItShared" inputs: + failOnMinTestsNotRun: true + minimumExpectedTests: 6 + testSelector: 'testAssemblies' + testAssemblyVer2: | + **\TestLockItShared.dll + !**\obj\** + searchFolder: '$(System.DefaultWorkingDirectory)' + testFiltercriteria: 'TestCategory!=Explicit&TestCategory!=RequiresCOPRI&TestCategory!=RequiresCOPRI.Live&TestCategory!=RequiresCOPRI.Devel' + + - task: VSTest@2 + displayName: "Run tests TestLockItBLE" + inputs: + failOnMinTestsNotRun: true + minimumExpectedTests: 19 + testSelector: 'testAssemblies' + testAssemblyVer2: | + **\TestLockItBLE.dll + !**\obj\** + searchFolder: '$(System.DefaultWorkingDirectory)' + testFiltercriteria: 'TestCategory!=Explicit&TestCategory!=RequiresCOPRI&TestCategory!=RequiresCOPRI.Live&TestCategory!=RequiresCOPRI.Devel' + + - task: VSTest@2 + displayName: "Run tests ShareeLib" + inputs: + failOnMinTestsNotRun: true + minimumExpectedTests: 303 testSelector: 'testAssemblies' testAssemblyVer2: | **\TestShareeLib.dll !**\obj\** searchFolder: '$(System.DefaultWorkingDirectory)' testFiltercriteria: 'TestCategory!=Explicit&TestCategory!=RequiresCOPRI&TestCategory!=RequiresCOPRI.Live&TestCategory!=RequiresCOPRI.Devel' - codeCoverageEnabled: true + + - task: VSTest@2 + displayName: "Run tests Sharee" + inputs: + failOnMinTestsNotRun: false # there are not yet tests in project. + minimumExpectedTests: 1 + testSelector: 'testAssemblies' + testAssemblyVer2: | + **\TestSharee.dll + !**\obj\** + searchFolder: '$(System.DefaultWorkingDirectory)' + testFiltercriteria: 'TestCategory!=Explicit&TestCategory!=RequiresCOPRI&TestCategory!=RequiresCOPRI.Live&TestCategory!=RequiresCOPRI.Devel'