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

unit_test
dorian.hodin 2 years ago
parent baa37082a3
commit a4778da132

@ -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

@ -0,0 +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>
</testsuites>
Loading…
Cancel
Save