Skip to content

Commit aaba4ce

Browse files
committed
Added default schema name to file names.
Added running coverage in develop mode for gathering of coverage on ut_v2_migration package
1 parent 4bc793a commit aaba4ce

10 files changed

Lines changed: 16 additions & 6 deletions

File tree

.travis/setup_account.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ create user ${DB_USER} identified by ${DB_PASS} quota unlimited on USERS default
77
88
grant create session, create procedure, create type, create table, create sequence, create view to ${DB_USER};
99
grant select any dictionary to ${DB_USER};
10+
--needed to execute coverage report
11+
grant create any procedure to ${DB_USER};
1012
1113
exit
1214
SQL

source/install.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ drop public synonym utassert2;
7474
drop public synonym utassert;
7575

7676
set echo off
77-
@@install_component.sql 'migration/utassert2.pks'
78-
@@install_component.sql 'migration/utassert.pks'
79-
@@install_component.sql 'migration/ut_v2_migration.pks'
77+
@@install_component.sql 'migration/ut3.utassert2.pks'
78+
@@install_component.sql 'migration/ut3.utassert.pks'
79+
@@install_component.sql 'migration/ut3.ut_v2_migration.pks'
8080

81-
@@install_component.sql 'migration/utassert2.pkb'
82-
@@install_component.sql 'migration/utassert.pkb'
83-
@@install_component.sql 'migration/ut_v2_migration.pkb'
81+
@@install_component.sql 'migration/ut3.utassert2.pkb'
82+
@@install_component.sql 'migration/ut3.utassert.pkb'
83+
@@install_component.sql 'migration/ut3.ut_v2_migration.pkb'
8484

8585
set echo on
8686
create or replace public synonym utassert for &&utplsql_v2_owner..utassert;

test/migration_test/test_migration.pkb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ end;
5050
end;
5151
]';
5252

53+
procedure coverage_in_develop_mode is
54+
begin
55+
ut3.ut_coverage.coverage_start_develop();
56+
end;
57+
5358
procedure create_ut_v2_package is
5459
pragma autonomous_transaction;
5560
begin

test/migration_test/test_migration.pks

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ create or replace package test_migration as
22

33
-- %suite(Test migration of utPLSQL v2 package into utPLSQL v3 package)
44

5+
-- %beforeall
6+
procedure coverage_in_develop_mode;
7+
58
-- %beforeeach
69
procedure create_ut_v2_package;
710

0 commit comments

Comments
 (0)