Skip to content

Commit b56d27a

Browse files
committed
Fixed invalid suitepath in core package.
Updated cli version to 3.1.6 Added top package `utplsql` with dbms_output.enable for both test users. Renamed suitepath to match username (ut3_tester)
1 parent 5d3b18c commit b56d27a

26 files changed

+50
-34
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ env:
4747
#utPLSQL released version directory
4848
- UTPLSQL_DIR="utPLSQL_latest_release"
4949
- SELFTESTING_BRANCH=${TRAVIS_BRANCH}
50-
- UTPLSQL_CLI_VERSION="3.1.0"
50+
- UTPLSQL_CLI_VERSION="3.1.6"
5151
# Maven
5252
- MAVEN_HOME=/usr/local/maven
5353
- MAVEN_CFG=$HOME/.m2

development/template.env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export SQLCLI=sql # For sqlcl client
44
#export SQLCLI=sqlplus # For sqlplus client
55
export CONNECTION_STR=127.0.0.1:1521/xe # Adjust the connect string
66
export ORACLE_PWD=oracle # Adjust your local SYS password
7-
export UTPLSQL_CLI_VERSION="3.1.0"
7+
export UTPLSQL_CLI_VERSION="3.1.6"
88
export SELFTESTING_BRANCH=develop
99

1010
export UTPLSQL_DIR="utPLSQL_latest_release"

test/common_helper/utplsql.pkb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
create or replace package body utplsql is
2+
3+
procedure global_setup is
4+
begin
5+
--we need to have dbms_output enable for our tests
6+
--TODO - move this to utPLSQL-cli once cli has support for it.
7+
dbms_output.enable(null);
8+
end;
9+
10+
end;
11+
/

test/common_helper/utplsql.pks

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

test/install_and_run_tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ time utPLSQL-cli/bin/utplsql run ${UT3_TESTER_HELPER}/${UT3_TESTER_HELPER_PASSWO
2626
-f=ut_sonar_test_reporter -o=test_results.xml \
2727
-f=ut_junit_reporter -o=junit_test_results.xml \
2828
-f=ut_tfs_junit_reporter -o=tfs_test_results.xml \
29-
-f=ut_documentation_reporter -o=test_results.log -s \
30-
-scc
29+
-f=ut_documentation_reporter -o=test_results.log -s

test/install_ut3_tester_tests.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ whenever oserror exit failure rollback
44

55
alter session set plsql_optimize_level=0;
66

7+
@@common_helper/utplsql.pks
8+
@@common_helper/utplsql.pkb
79

810
--Install tests
911
@@ut3_tester/core.pks

test/install_ut3_user_tests.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ whenever oserror exit failure rollback
44

55
alter session set plsql_optimize_level=0;
66

7+
@@common_helper/utplsql.pks
8+
@@common_helper/utplsql.pkb
9+
710
prompt Install user tests
811
@@ut3_user/test_user.pks
912
@@ut3_user/expectations/unary/test_expect_not_to_be_null.pks

test/ut3_tester/core.pkb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
create or replace package body core is
22

3-
procedure global_setup is
3+
procedure global_setup is
44
begin
55
ut3.ut_coverage.set_develop_mode(true);
66
--improve performance of test execution by disabling all compiler optimizations
77
ut3_tester_helper.main_helper.execute_autonomous('ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL=0');
8-
dbms_output.enable(null);
9-
10-
--trn on helper output
11-
ut3_tester_helper.main_helper.output_null;
128
end;
139

1410
end;

test/ut3_tester/core.pks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
create or replace package core is
22

33
--%suite
4-
--%suitepath(utplsql)
4+
--%suitepath(utplsql.ut3_tester)
55

66
--%beforeall
77
procedure global_setup;

test/ut3_tester/core/annotations/test_annot_throws_exception.pks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
create or replace package test_annot_throws_exception
22
is
33
--%suite(annotations - throws)
4-
--%suitepath(utplsql.framework_tester.core.annotations)
4+
--%suitepath(utplsql.ut3_tester.core.annotations)
55

66
--%beforeall
77
procedure recollect_tests_results;

0 commit comments

Comments
 (0)