mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-07-08 22:05:13 +02:00
VSTest@2
This commit is contained in:
+24
-1
@@ -12,11 +12,18 @@ steps:
|
|||||||
echo "BuildId = $(buildId)"
|
echo "BuildId = $(buildId)"
|
||||||
displayName: 'Print buildId'
|
displayName: 'Print buildId'
|
||||||
|
|
||||||
# Install Tools (SonarScanner)
|
# Install Tools
|
||||||
- script: |
|
- script: |
|
||||||
dotnet tool install --global dotnet-sonarscanner
|
dotnet tool install --global dotnet-sonarscanner
|
||||||
displayName: Install Tools (SonarScanner)
|
displayName: Install Tools (SonarScanner)
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: "Install tool: dotnet-coverageconverter"
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
custom: 'tool'
|
||||||
|
arguments: 'update --global dotnet-coverageconverter'
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: "Use JDK11 by default"
|
displayName: "Use JDK11 by default"
|
||||||
inputs:
|
inputs:
|
||||||
@@ -57,6 +64,22 @@ steps:
|
|||||||
arguments: '--configuration Debug --framework netcoreapp3.1 --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover'
|
arguments: '--configuration Debug --framework netcoreapp3.1 --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover'
|
||||||
condition: and(succeeded(), eq(variables['RUN_SONARCLOUD'], 'yes'))
|
condition: and(succeeded(), eq(variables['RUN_SONARCLOUD'], 'yes'))
|
||||||
|
|
||||||
|
- task: VSTest@2
|
||||||
|
displayName: 'VsTest'
|
||||||
|
inputs:
|
||||||
|
testSelector: 'testAssemblies'
|
||||||
|
vsTestVersion: 16.0
|
||||||
|
diagnosticsEnabled: true
|
||||||
|
codeCoverageEnabled: true
|
||||||
|
testAssemblyVer2: |
|
||||||
|
**\*tests.dll
|
||||||
|
!**\obj\**
|
||||||
|
|
||||||
|
- task: CmdLine@2
|
||||||
|
displayName: 'Convert .coverage to .coveragexml'
|
||||||
|
inputs:
|
||||||
|
script: 'dotnet-coverageconverter --CoverageFilesFolder "$(Agent.TempDirectory)\TestResults"'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --framework netcoreapp3.1 --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
|
dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --framework netcoreapp3.1 --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
|
||||||
displayName: 'Build tests and run tests for netcoreapp3.1 (with coverage)'
|
displayName: 'Build tests and run tests for netcoreapp3.1 (with coverage)'
|
||||||
|
|||||||
Reference in New Issue
Block a user