Extended.

This commit is contained in:
o.hauff 2022-01-23 10:13:27 +00:00
parent 705a0cc308
commit c543cf46ec

View file

@ -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'