mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-05 08:57:23 +02:00
SonarCloud
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -252,3 +252,4 @@ paket-files/
|
|||||||
*.sln.iml
|
*.sln.iml
|
||||||
|
|
||||||
./report/coverlet/
|
./report/coverlet/
|
||||||
|
/test/WireMock.Net.Tests/coverage.opencover.xml
|
||||||
|
|||||||
@@ -32,15 +32,22 @@ steps:
|
|||||||
# - https://github.com/Microsoft/vsts-tasks/issues/8291
|
# - https://github.com/Microsoft/vsts-tasks/issues/8291
|
||||||
#
|
#
|
||||||
- script: |
|
- script: |
|
||||||
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner begin /k:"wiremock" /o:"stefh-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /v:"$(buildId)" /d:sonar.cs.opencover.reportsPaths="**\coverage.opencover.xml"
|
%USERPROFILE%\.dotnet\tools\dotnet-sonarscanner begin /k:"wiremock" /o:"stefh-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /v:"$(buildId)" /d:sonar.cs.opencover.reportsPaths="./test/WireMock.Net.Tests/coverage.opencover.xml"
|
||||||
displayName: Begin SonarScanner
|
displayName: Begin SonarScanner
|
||||||
condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes'))
|
condition: and(succeeded(), eq(variables['RUN_SONAR'], 'yes'))
|
||||||
|
|
||||||
# Build source, tests and run tests for net452 and netcoreapp3.1 (with coverage)
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: Build Debug
|
||||||
|
inputs:
|
||||||
|
command: 'build'
|
||||||
|
arguments: /p:Configuration=Debug
|
||||||
|
projects: $(buildProjects)
|
||||||
|
|
||||||
|
# Build tests and run tests for net452 and netcoreapp3.1 (with coverage)
|
||||||
- script: |
|
- 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 net452
|
||||||
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 source, tests and run tests for net452 and netcoreapp3.1 (with coverage)'
|
displayName: 'Build tests and run tests for net452 and netcoreapp3.1 (with coverage)'
|
||||||
|
|
||||||
# End SonarScanner
|
# End SonarScanner
|
||||||
- script: |
|
- script: |
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors>Stef Heyenrath</Authors>
|
<Authors>Stef Heyenrath</Authors>
|
||||||
<!--<TargetFrameworks>net452;netcoreapp2.1</TargetFrameworks>-->
|
<TargetFramework>net452;netcoreapp3.1</TargetFramework>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<AssemblyName>WireMock.Net.Tests</AssemblyName>
|
<AssemblyName>WireMock.Net.Tests</AssemblyName>
|
||||||
<PackageId>WireMock.Net.Tests</PackageId>
|
<PackageId>WireMock.Net.Tests</PackageId>
|
||||||
|
|||||||
Reference in New Issue
Block a user