From 37a82f8b1def734bb0264d25df6fe580c929594f Mon Sep 17 00:00:00 2001
From: kon0379 <jakub.konvicka@vsb.cz>
Date: Wed, 10 Jan 2024 18:17:29 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 97fd62d..f88c281 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -106,7 +106,7 @@ sonarqube-check:
   script: 
       - "dotnet sonarscanner begin /k:\"kon0379DiplomaThesis\" /d:sonar.token=\"$SONAR_TOKEN\" /d:\"sonar.host.url=$SONAR_HOST_URL\" "
       - "sudo dotnet build"
-      - "sudo dotnet test --collect \"Code Coverage\""
+      - "dotnet-coverage collect 'dotnet test' -f xml  -o 'coverage.xml'"
       - "dotnet sonarscanner end /d:sonar.token=\"$SONAR_TOKEN\""
   allow_failure: true
   only:
-- 
GitLab