From a4778da132a99ed027e4787ad53f8495816eef71 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Sat, 18 Mar 2023 11:54:44 +0100 Subject: [PATCH] Try to add coverage.xml file to SonarQube --- .drone.yml | 2 +- Source/Tests/coverage.xml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Source/Tests/coverage.xml diff --git a/.drone.yml b/.drone.yml index 5e5235d..e55e3e3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: SONAR_TOKEN: from_secret: SONARQ_TOKEN commands: - - sonar-scanner -Dsonar.projectKey=SAE4.01_FORMULAIRE -Dsonar.sources=. -Dsonar.login=$${SONAR_TOKEN} -Dsonar.language=php -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar -Dsonar.php.coverage.reportPaths=coverage.xml + - sonar-scanner -Dsonar.projectKey=SAE4.01_FORMULAIRE -Dsonar.sources=. -Dsonar.login=$${SONAR_TOKEN} -Dsonar.language=php -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar -Dsonar.php.coverage.reportPaths=./Source/Tests/coverage.xml diff --git a/Source/Tests/coverage.xml b/Source/Tests/coverage.xml new file mode 100644 index 0000000..8c23855 --- /dev/null +++ b/Source/Tests/coverage.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + +