From 7018e1d53b66f48cc3ee48a06e591432055fe809 Mon Sep 17 00:00:00 2001 From: Coen van den Munckhof Date: Thu, 26 Sep 2024 23:28:54 +0200 Subject: [PATCH] Refactor test configuration in build.yaml --- .azuredevops/Pipelines/build.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.azuredevops/Pipelines/build.yaml b/.azuredevops/Pipelines/build.yaml index 0acf1ec8..c82d3800 100644 --- a/.azuredevops/Pipelines/build.yaml +++ b/.azuredevops/Pipelines/build.yaml @@ -117,7 +117,7 @@ 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" @@ -125,6 +125,18 @@ stages: /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