Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc400cb

Browse files
committed
Fixing utplsql-cli run invocation.
1 parent 1b2dd8c commit cc400cb

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

sonar-project.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ sonar.projectVersion=v3.0.2
99
# If not set, SonarQube starts looking for source code from the directory containing
1010
# the sonar-project.properties file.
1111
sonar.sources=./source
12-
sonar.coverageReportPaths=./test/coverage.xml,coverage.xml
12+
sonar.coverageReportPaths=./tests/coverage.xml,coverage.xml
1313
sonar.tests=./test
14-
sonar.testExecutionReportPaths=./test/test_results.xml
14+
sonar.testExecutionReportPaths=./test_results.xml
1515
sonar.links.issue=https://github.com/utPLSQL/utPLSQL/issues
1616
sonar.links.ci=https://travis-ci.org/utPLSQL/utPLSQL
1717
sonar.links.homepage=https://github.com/utPLSQL/utPLSQL

test/install_and_run_tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ cd ..
99

1010
utPLSQL-cli/bin/utplsql run ${UT3_TESTER}/${UT3_TESTER_PASSWORD}@${CONNECTION_STR} \
1111
-source_path=source -test_path=tests \
12-
-f=ut_documentation_reporter -c -o=test_results.log -s \
12+
-f=ut_documentation_reporter -c \
13+
-f=ut_documentation_reporter -o=test_results.log \
1314
-f=ut_coverage_sonar_reporter -o=coverage.xml \
1415
-f=ut_sonar_test_reporter -o=test_results.xml
1516

1617
status_line_regex="^[0-9]+ tests, ([0-9]+) failed, ([0-9]+) errored.*"
1718

19+
cat coverage.xml
20+
1821
RC=$(cat test_results.log | grep -E "${status_line_regex}" | sed -re "s/${status_line_regex}/\1\2/")
1922

2023
exit $RC

test/install_tests.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@ut_output_buffer/test_output_buffer.pks
66

77
@ut_utils/test_ut_utils.pkb
8+
show errors
89
@ut_annotations/test_annotations.pkb
910
@ut_matchers/test_matchers.pkb
1011
@ut_output_buffer/test_output_buffer.pkb

0 commit comments

Comments
 (0)