Skip to content

Commit

Permalink
Refactor test configuration in build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Sep 26, 2024
1 parent f6cd6b0 commit 7018e1d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .azuredevops/Pipelines/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,26 @@ stages:
displayName: 🧪 Dotnet Test
inputs:
command: test
projects: 'tests/**/*.csproj'
projects: 'tests/**/*.Tests.csproj'
arguments: >-
--no-build --configuration $(buildConfiguration)
--collect:"XPlat Code Coverage;Format=cobertura,opencover"
--logger trx
/p:ExcludeByAttribute=CompilerGenerated
publishTestResults: true

- task: DotNetCoreCLI@2
displayName: 🧪 Dotnet Test SystemTest
inputs:
command: test
projects: 'tests/**/SystemTests.csproj'
arguments: >-
--no-build --configuration $(buildConfiguration)
-- --output Detailed
--report-trx
--coverage --coverage-output coverage.cobertura.xml --coverage-output-format cobertura
publishTestResults: true

- template: Templates/publish-code-analysis.yaml

- task: DotNetCoreCLI@2
Expand Down

0 comments on commit 7018e1d

Please sign in to comment.