Skip to content

Commit 2c8811d

Browse files
author
Jacek Gębal
committed
Added tests to reproduce the issue.
1 parent 9ac4a7e commit 2c8811d

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

test/run_tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -ev
44
#goto git root directory
55
git rev-parse && cd "$(git rev-parse --show-cdup)"
66

7+
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
8+
79
time utPLSQL-cli/bin/utplsql run UT3_TESTER_HELPER/ut3@//${CONNECTION_STR} -D \
810
-source_path=source -owner=ut3_develop \
911
-p='ut3_tester,ut3_user' \

test/ut3_tester/core/test_suite_manager.pks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ create or replace package test_suite_manager is
163163

164164
--%context(get_schema_ut_packages)
165165

166-
--%test(returns list of all unit test packages in given schema)
166+
--%test(returns list of all unit test packages in given schema excluding packages that are not suites)
167167
--%beforetest(create_ut3_suite)
168168
--%aftertest(drop_ut3_suite)
169169
procedure test_get_schema_ut_packages;

test/ut3_tester_helper/run_helper.pkb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,12 +855,23 @@ create or replace package body run_helper is
855855
--%test
856856
procedure some_test;
857857

858+
end;]';
859+
execute immediate q'[
860+
create or replace package ut3_develop.package_that_is_not_a_test
861+
as
862+
--%parameter(a comment inside)
863+
--%parameters( description )
864+
865+
--%test
866+
procedure some_test;
867+
858868
end;]';
859869
end;
860870

861871
procedure drop_ut3_suite is
862872
pragma autonomous_transaction;
863873
begin
874+
execute immediate q'[drop package ut3_develop.package_that_is_not_a_test]';
864875
execute immediate q'[drop package ut3_develop.some_test_package]';
865876
end;
866877

0 commit comments

Comments
 (0)