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

Skip to content

Commit 34b94de

Browse files
committed
Enabling coverage for the framework.
1 parent cc400cb commit 34b94de

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

test/core.pkb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
create or replace package body core is
2+
3+
procedure enable_develop_coverage is
4+
begin
5+
ut3.ut_coverage.coverage_start_develop();
6+
end;
7+
8+
end;
9+
/

test/core.pks

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
create or replace package core is
2+
3+
--%suite
4+
--%suitepath(utplsql)
5+
6+
--%beforeall
7+
procedure enable_develop_coverage;
8+
9+
end;
10+
/

test/install_and_run_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd test
88
cd ..
99

1010
utPLSQL-cli/bin/utplsql run ${UT3_TESTER}/${UT3_TESTER_PASSWORD}@${CONNECTION_STR} \
11-
-source_path=source -test_path=tests \
11+
-source_path=source -test_path=test \
1212
-f=ut_documentation_reporter -c \
1313
-f=ut_documentation_reporter -o=test_results.log \
1414
-f=ut_coverage_sonar_reporter -o=coverage.xml \
@@ -17,6 +17,7 @@ utPLSQL-cli/bin/utplsql run ${UT3_TESTER}/${UT3_TESTER_PASSWORD}@${CONNECTION_ST
1717
status_line_regex="^[0-9]+ tests, ([0-9]+) failed, ([0-9]+) errored.*"
1818

1919
cat coverage.xml
20+
cat test_results.xml
2021

2122
RC=$(cat test_results.log | grep -E "${status_line_regex}" | sed -re "s/${status_line_regex}/\1\2/")
2223

test/install_tests.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

2+
@core.pks
23
@ut_utils/test_ut_utils.pks
34
@ut_annotations/test_annotations.pks
45
@ut_matchers/test_matchers.pks
56
@ut_output_buffer/test_output_buffer.pks
67

8+
@core.pkb
79
@ut_utils/test_ut_utils.pkb
8-
show errors
910
@ut_annotations/test_annotations.pkb
1011
@ut_matchers/test_matchers.pkb
1112
@ut_output_buffer/test_output_buffer.pkb

0 commit comments

Comments
 (0)