Skip to content

Commit 1b61f2e

Browse files
committed
Update azure_pull_request.yml for Azure Pipelines
1 parent 4af0968 commit 1b61f2e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

azure_pull_request.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,12 @@ steps:
2424
script: dotnet build --no-incremental
2525
displayName: 'Run Build'
2626

27-
- task: CmdLine@2
27+
- task: DotNetCoreCLI@2
28+
displayName: 'Run dotnet test'
2829
inputs:
29-
script: dotnet test --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --collect "Code Coverage" /p:Exclude=[xunit.*]* --no-build --no-restore
30-
displayName: 'Run Tests'
31-
32-
# - task: DotNetCoreCLI@2
33-
# displayName: 'Run dotnet test'
34-
# inputs:
35-
# command: test
36-
# projects: '**/*[Tt]ests/*.csproj'
37-
# arguments: '--configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --collect "Code Coverage" /p:Exclude=[xunit.*]* --no-build --no-restore'
30+
command: test
31+
projects: '**/*[Tt]ests/*.csproj'
32+
arguments: '--configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --collect "Code Coverage" /p:Exclude=[xunit.*]*'
3833

3934
- task: SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1
4035
displayName: 'Run Code Analysis'

0 commit comments

Comments
 (0)