netcoreapp3.1 (with coverage)

This commit is contained in:
Stef Heyenrath
2020-11-28 15:15:01 +01:00
parent 00a6fec7b4
commit e222a0a9c3

View File

@@ -25,25 +25,21 @@ steps:
$jdkPath = $env:JAVA_HOME_11_X64
Write-Host "##vso[task.setvariable variable=JAVA_HOME]$jdkPath"
# Build tests and run tests for net452
- script: |
dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --framework net452
displayName: 'Build tests and run tests for net452'
# Begin SonarScanner
- script: |
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner begin /k:"WireMock-Net_WireMock.Net" /o:"wiremock-net" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /v:"$(buildId)" /d:sonar.cs.opencover.reportsPaths="**\coverage.netcoreapp3.1.opencover.xml"
displayName: Begin SonarScanner
condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes'))
- task: DotNetCoreCLI@2
displayName: Build Debug
inputs:
command: 'build'
arguments: /p:Configuration=Debug
projects: $(buildProjects)
condition: and(succeeded(), eq(variables['BUILD_SOLUTION_AS_DEBUG'], 'yes'))
# Build tests and run tests for net452 and netcoreapp3.1 (with coverage)
# Build tests and run tests for netcoreapp3.1 (with coverage)
- script: |
dotnet test ./test/WireMock.Net.Tests/WireMock.Net.Tests.csproj --configuration Debug --framework net452
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 net452 and netcoreapp3.1 (with coverage)'
displayName: 'Build tests and run tests for netcoreapp3.1 (with coverage)'
# End SonarScanner
- script: |