Try to add coverage.xml file to SonarQube 2
continuous-integration/drone/push Build is passing Details

unit_test
dorian.hodin 2 years ago
parent a4778da132
commit f3a0b9c67a

@ -14,7 +14,12 @@ 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=./Source/Tests/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=coverage.xml

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="FormTest" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" tests="7" assertions="7" errors="0" failures="0" skipped="0" time="0.005296">
<testcase name="testGetTitleReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="8" class="FormTest" classname="FormTest" assertions="1" time="0.004842"/>
<testcase name="testSetTitleSetsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="14" class="FormTest" classname="FormTest" assertions="1" time="0.000115"/>
<testcase name="testGetDescriptionReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="21" class="FormTest" classname="FormTest" assertions="1" time="0.000076"/>
<testcase name="testSetDescriptionSetsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="27" class="FormTest" classname="FormTest" assertions="1" time="0.000083"/>
<testcase name="testGetQuestionsReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="34" class="FormTest" classname="FormTest" assertions="1" time="0.000066"/>
<testcase name="testSetQuestionsSetsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="46" class="FormTest" classname="FormTest" assertions="1" time="0.000057"/>
<testcase name="testGetIdReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="59" class="FormTest" classname="FormTest" assertions="1" time="0.000057"/>
<testsuite name="FormTest" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" tests="7" assertions="7" errors="0" failures="0" skipped="0" time="0.005547">
<testcase name="testGetTitleReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="8" class="FormTest" classname="FormTest" assertions="1" time="0.005191"/>
<testcase name="testSetTitleSetsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="14" class="FormTest" classname="FormTest" assertions="1" time="0.000063"/>
<testcase name="testGetDescriptionReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="21" class="FormTest" classname="FormTest" assertions="1" time="0.000062"/>
<testcase name="testSetDescriptionSetsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="27" class="FormTest" classname="FormTest" assertions="1" time="0.000055"/>
<testcase name="testGetQuestionsReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="34" class="FormTest" classname="FormTest" assertions="1" time="0.000064"/>
<testcase name="testSetQuestionsSetsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="46" class="FormTest" classname="FormTest" assertions="1" time="0.000058"/>
<testcase name="testGetIdReturnsCorrectValue" file="F:\Documents\SAE4.01_FORMULAIRE\Source\Tests\FormTest.php" line="59" class="FormTest" classname="FormTest" assertions="1" time="0.000054"/>
</testsuite>
</testsuites>
Loading…
Cancel
Save