diff --git a/UnitTests.yml b/UnitTests.yml index d5f5544..e78d0b7 100644 --- a/UnitTests.yml +++ b/UnitTests.yml @@ -12,10 +12,32 @@ pool: variables: buildConfiguration: 'Release' -steps: +jobs: -- task: DotNetCoreCLI@2 - inputs: - command: 'test' - projects: 'TestLockItShared/TestLockItShared.csproj' - configuration: '$(buildConfiguration)' \ No newline at end of file +- job: RunUnittests + displayName: "Run Unit Tests" + + steps: + + - task: DotNetCoreCLI@2 + inputs: + command: 'test' + projects: 'TestLockItShared/TestLockItShared.csproj' + configuration: '$(buildConfiguration)' + + - task: DotNetCoreCLI@2 + 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' \ No newline at end of file