From f4bd48ec5e8ac12713ae41148af2ede6a8d9bfb8 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Thu, 29 Dec 2022 11:32:28 +0000 Subject: [PATCH] Add running tests and collecting coverage --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c97f614..878a645 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -107,9 +107,9 @@ sonarqube-check: - "apt-get install --yes openjdk-11-jre" - "dotnet tool install --global dotnet-sonarscanner" - "export PATH=\"$PATH:$HOME/.dotnet/tools\"" - - "dotnet sonarscanner begin /k:\"wonderking_continuity_AYVNylewKO-B3MBr7mwm\" /d:sonar.login=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" " + - "dotnet sonarscanner begin /k:\"wonderking_continuity_AYVNylewKO-B3MBr7mwm\" /d:sonar.login=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml " - "dotnet build" - - "dotnet test --collect \"Code Coverage\"" + - "dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'" - "dotnet sonarscanner end /d:sonar.login=\"$SONAR_TOKEN\"" allow_failure: true only: