I'm using the cli to execute my tests and generate my reports, example:
utplsql run ${ORACLE_USER}/${ORACLE_PASSWORD}@${ORACLE_HOST}:${ORACLE_PORT}/${ORACLE_SERVICE} \
-source_path=src \
-test_path=tests \
-f=ut_documentation_reporter -c \
-f=ut_coverage_html_reporter -o=results/coverage.html \
-f=ut_coverage_cobertura_reporter -o=results/cobertura.xml \
-f=ut_coverage_sonar_reporter -o=results/coverage.xml \
-f=ut_sonar_test_reporter -o=results/test_results.xml \
-f=ut_junit_reporter -o=results/junit_test_results.xml \
--failure-exit-code=0However the reports are being generated with file paths missing the 1st character no matter how I terminate the cli properties or reorganize my folder structure. I'm tried enclosing with both single and double qoutes.
This happens with all the cobertura report, sonar coverage and sonar test reports that I've tried.
<?xml version="1.0" encoding="US-ASCII"?>
<coverageversion="1">
<filepath="rc/award_bonus/award_bonus.prc">
<lineToCoverlineNumber="6"covered="true"/>
<lineToCoverlineNumber="10"covered="true"/>
<lineToCoverlineNumber="11"covered="true"/>
<lineToCoverlineNumber="13"covered="true"/>
</file>
<filepath="rc/between_string/betwnstr.fnc">
<lineToCoverlineNumber="2"covered="true"/>
<lineToCoverlineNumber="4"covered="true"/>
<lineToCoverlineNumber="5"covered="true"/>
<lineToCoverlineNumber="7"covered="true"/>
</file>
<filepath="rc/remove_rooms_by_name/remove_rooms_by_name.prc">
<lineToCoverlineNumber="3"covered="true"/>
<lineToCoverlineNumber="4"covered="true"/>
<lineToCoverlineNumber="6"covered="true"/>
</file>
</coverage>
The only work around so far is to add absolute pathing, e.g. './src'. This generates the following
<?xml version="1.0" encoding="US-ASCII"?>
<coverageversion="1">
<filepath="/src/award_bonus/award_bonus.prc">
<lineToCoverlineNumber="6"covered="true"/>
<lineToCoverlineNumber="10"covered="true"/>
<lineToCoverlineNumber="11"covered="true"/>
<lineToCoverlineNumber="13"covered="true"/>
</file>
<filepath="/src/between_string/betwnstr.fnc">
<lineToCoverlineNumber="2"covered="true"/>
<lineToCoverlineNumber="4"covered="true"/>
<lineToCoverlineNumber="5"covered="true"/>
<lineToCoverlineNumber="7"covered="true"/>
</file>
<filepath="/src/remove_rooms_by_name/remove_rooms_by_name.prc">
<lineToCoverlineNumber="3"covered="true"/>
<lineToCoverlineNumber="4"covered="true"/>
<lineToCoverlineNumber="6"covered="true"/>
</file>
</coverage>
But this doesnt work for sonarqube server instance as the / infront of the filepath is not recognized and sonarqube cannot see the files listed and no coverage report is generated.
I'm using the cli to execute my tests and generate my reports, example:
However the reports are being generated with file paths missing the 1st character no matter how I terminate the cli properties or reorganize my folder structure. I'm tried enclosing with both single and double qoutes.
This happens with all the cobertura report, sonar coverage and sonar test reports that I've tried.
The only work around so far is to add absolute pathing, e.g. './src'. This generates the following
But this doesnt work for sonarqube server instance as the / infront of the filepath is not recognized and sonarqube cannot see the files listed and no coverage report is generated.