Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
e623664
Merge remote-tracking branch 'origin/master' into develop
jgebal Feb 23, 2020
532073b
Updated version to 3.1.11
jgebal Feb 23, 2020
1b00d27
Updated project version after build [skip ci]
Feb 23, 2020
63f17a2
Improved the way utPLSQL checks if user has the `execute any procedur…
jgebal Mar 12, 2020
4979cf9
Added check for sys grants added via role when installing utPLSQL fra…
jgebal Mar 12, 2020
5532191
Merge pull request #1056 from utPLSQL/feature/improve_ut3_user_support
jgebal Mar 14, 2020
4d865ae
Fixed flay tests that can fail on occasion when a second flips during…
jgebal Mar 14, 2020
d9fc007
Merge pull request #1058 from utPLSQL/feature/fixing_flaky_tests
jgebal Mar 14, 2020
8d37591
Updated project version after build [skip ci]
Mar 14, 2020
725d367
Refactored and fixed code to use be fully schema-independent.
jgebal Mar 15, 2020
2c0b2d0
Refactored tests to comply with new schema layout
jgebal Mar 15, 2020
0d9eddc
Fixing examples run
jgebal Mar 15, 2020
179586a
Enabled echo and feedback for examples
jgebal Mar 15, 2020
0793607
Enabled echo and feedback for examples
jgebal Mar 15, 2020
eb5dad6
Changed the way session context is created.
jgebal Mar 15, 2020
22f0ec7
Fixed failing tests - wrong context name
jgebal Mar 16, 2020
09b79bf
Removed copy of ojdbc jar files - no longed valid and no longer needed.
jgebal Mar 17, 2020
6e2a4b4
Updated documentation. No need to download OJDBC drivers anymore.
jgebal Mar 17, 2020
6b1dad8
Merge pull request #1059 from utPLSQL/feature/swap_develop_schema
jgebal Mar 17, 2020
ea4c9fb
Updated project version after build [skip ci]
Mar 17, 2020
b8c0287
Resolves issue #1060 with suites not properly built with GERMAN (non-…
jgebal Mar 25, 2020
2689052
Merge pull request #1061 from utPLSQL/bugfix/suitepath_with_nlssort
jgebal Mar 25, 2020
fa4c6b7
Restructuring utPSLQL install guide.
jgebal Mar 25, 2020
62ef235
Fixed some typos
jgebal Mar 26, 2020
4be8465
Merge pull request #1063 from utPLSQL/feature/install_doc_update
jgebal Mar 27, 2020
72a6809
Updated project version after build [skip ci]
Mar 27, 2020
83ee513
Added explicit requirements
jgebal Mar 29, 2020
c5d53fb
Added explicit 11g release 2 requirement
jgebal Mar 29, 2020
41328a5
Merge pull request #1065 from utPLSQL/feature/add_explicit_requirements
jgebal Mar 31, 2020
789ad61
Updated project version after build [skip ci]
Apr 1, 2020
0dd978f
grant privileges to debug via UT3_USER
PhilippSalvisberg Jun 4, 2020
9ea6ab4
add test case to reproduce bug #1073
PhilippSalvisberg Jun 4, 2020
bfe94cd
handle nested CDATA sections to fix bug #1073
PhilippSalvisberg Jun 4, 2020
6631930
support Oracle DB 11.2, add ace only on 12c and higher
PhilippSalvisberg Jun 4, 2020
d9a0457
Merge pull request #1075 from utPLSQL/bugfix/issue-1073-nested-cdata
PhilippSalvisberg Jun 4, 2020
c465151
Updated project version after build [skip ci]
Jun 4, 2020
a3b3a20
Changed `dbms_plssqlcode` tables to be permanent.
jgebal Jun 10, 2020
199ce0b
Merge pull request #1078 from utPLSQL/feature/change_coverage_to_perm…
jgebal Jun 10, 2020
93fd222
Reworked coverage to allow for gathering coverage without calling utP…
jgebal Jun 10, 2020
a23f7be
Updated project version after build [skip ci]
Jun 10, 2020
641d87c
Removed mocking API for coverage,
jgebal Jun 13, 2020
52e1db9
Workaround for 12.2 issue with conditional compilation in package spec.
jgebal Jun 14, 2020
a17c3af
cleanup of unneeded safety code
jgebal Jun 14, 2020
09ab226
Refactoring tests
jgebal Jun 14, 2020
631d6da
Renamed master to main
jgebal Jun 14, 2020
d5cca04
Merge pull request #1080 from utPLSQL/feature/rename_from_master_to_main
jgebal Jun 15, 2020
4e7631b
Updated project version after build [skip ci]
Jun 15, 2020
e9e4b9e
Reorganized and cleaned up tests to have only one package used for co…
jgebal Jun 21, 2020
a4ae4cf
Removed dead code.
jgebal Jun 21, 2020
0e72abc
Added support for client_character_set as report parameter.
jgebal Jun 21, 2020
955de5c
Made coverage_run_id mandatory in `ut_coverage_options`
jgebal Jun 21, 2020
cd7d738
Fixed CDATA tagging in JUnit reporter
jgebal Jun 28, 2020
20bf6dd
Merge pull request #1085 from utPLSQL/feature/fix_cdata_tagging
jgebal Jul 18, 2020
2956d07
Updated project version after build [skip ci]
Jul 18, 2020
ad39737
Merge pull request #1079 from utPLSQL/feature/standalone_coverage
jgebal Jul 18, 2020
89d546a
Extended UK on ut_coverage_sources_tmp table.
jgebal Jul 18, 2020
461bc01
Updated project version after build [skip ci]
Jul 19, 2020
e96b978
Added object type to name in coverage reports.
jgebal Jul 20, 2020
09e495e
Merge pull request #1091 from utPLSQL/feature/fix_coverage_uk_violati…
jgebal Jul 20, 2020
507c176
Updated project version after build [skip ci]
Jul 20, 2020
959c1c9
Added example of a reporter that reports out all expectation outputs,…
jgebal Aug 3, 2020
81d4194
Fixes to annotation parsing.
jgebal Aug 3, 2020
86e335e
Fixed issue by removing owner from beginning of source code.
jgebal Aug 3, 2020
74b77b5
Merge pull request #1093 from utPLSQL/feature/fix_ddl_trigger_parsing
jgebal Aug 9, 2020
7eeae39
Updated project version after build [skip ci]
Aug 9, 2020
eced7a5
add executable flag (required on macOS and Linux)
PhilippSalvisberg Dec 9, 2020
7812a8a
resolves #1111 - use dbms_crypto instead of dbms_obfuscation_toolkit
PhilippSalvisberg Dec 9, 2020
abfa190
Merge pull request #1112 from utPLSQL/feature/issue-1111-oracle-21c
jgebal Dec 9, 2020
04b5f52
Updated project version after build [skip ci]
Dec 9, 2020
ae50802
Added missing <classes> tag
OsBlaineOra May 20, 2021
bbc8e9a
Merge pull request #1137 from OsBlaineOra/bugfix/partial_fix_1107_Mis…
jgebal May 20, 2021
ed87327
Merge pull request #1092 from utPLSQL/feature/sample_reporters
jgebal May 20, 2021
12f9bdf
Updated unit tests after coverage format fix
jgebal May 20, 2021
f671acf
Merge pull request #1138 from utPLSQL/feature/test_fixes_after_covera…
jgebal May 20, 2021
75037c8
Updated project version after build [skip ci]
May 20, 2021
7498530
Replaced hard coded 0 in total test coverage
OsBlaineOra Jun 1, 2021
70ccc22
Update readme.md
jgebal Aug 17, 2021
3b7687b
Update readme.md
jgebal Aug 17, 2021
cbfac19
Updated project version after build [skip ci]
Aug 17, 2021
4acb559
Adjusting build to work with new travis server.
jgebal Aug 17, 2021
59f630c
Merge pull request #1152 from utPLSQL/feature/move_to_travis-ci.com
jgebal Aug 18, 2021
ff11584
Updated project version after build [skip ci]
Aug 18, 2021
b0031ab
Update annotations documentation
jgebal Sep 3, 2021
b33d395
Updated project version after build [skip ci]
Sep 4, 2021
4e2b9f5
Fixed a divide by zero error.
OsBlaineOra Sep 7, 2021
9cbcaa1
Update of slack invite link
jgebal Oct 29, 2021
56ee7c9
Update link for slack
jgebal Oct 29, 2021
2967725
Adjusting tests for Oracle21cXE
jgebal Nov 3, 2021
a36d796
Adding ORacle 21c XE to the build process
jgebal Nov 3, 2021
ee7d9e2
Adding Oracle 21c XE to the build process
jgebal Nov 3, 2021
e48508f
Updated project version after build [skip ci]
Nov 4, 2021
14eca7f
Adding noparallel hint to elements causing issues on parallel-enabled…
jgebal Aug 17, 2021
f35694e
Added no_parallel hints to all SQLs to assure stable performance on p…
jgebal Nov 7, 2021
b7fbfeb
Merge pull request #1158 from utPLSQL/feature/add_21cXE_to_pipeline
jgebal Nov 7, 2021
c930ba6
Updated project version after build [skip ci]
Nov 7, 2021
45d1d5b
Improved build speed by ~1.5 minute
jgebal Nov 8, 2021
8080604
Testing build on images from Gerald Venzl
jgebal Nov 9, 2021
23d8651
Testing build on images from Gerald Venzl
jgebal Nov 10, 2021
2c1624e
Disabled 11g build from Gerald as utPLSQL fails on that build.
jgebal Nov 11, 2021
78ae58d
Increasing wait time before proceeding with background job run for tests
jgebal Nov 11, 2021
938a06f
Merge pull request #1160 from utPLSQL/feature/fix_cache_when_parallel…
jgebal Nov 11, 2021
9388cb3
Updated project version after build [skip ci]
Nov 11, 2021
e4c67a9
Merge pull request #1162 from utPLSQL/feature/build_process_improvements
jgebal Nov 11, 2021
1e19520
Updated project version after build [skip ci]
Nov 11, 2021
38c53b6
Update copyright dates in license
jgebal Nov 15, 2021
000aeab
Updated project version after build [skip ci]
Nov 15, 2021
581991b
Fixed failing tests and improved coverage reporting
jgebal Nov 15, 2021
b4c7db8
Merge pull request #1140 from OsBlaineOra/bugfix/missing_total_lines_…
jgebal Nov 15, 2021
ad5faa8
Updated project version after build [skip ci]
Nov 15, 2021
fae53a4
Removed duplicate profiler table installation.
jgebal Nov 16, 2021
159f4be
Merge pull request #1164 from utPLSQL/bugfix/duplicated_profiler_tabl…
jgebal Nov 16, 2021
f841ecf
Updated project version after build [skip ci]
Nov 16, 2021
36279f9
Merge branch 'develop' into release/v3.1.11
jgebal Nov 16, 2021
5eaefd3
Updated project version after build [skip ci]
Nov 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ services:

env:
global:
- UT3_OWNER=ut3
- UT3_OWNER_PASSWORD=ut3
- UT3_RELEASE_VERSION_SCHEMA=UT3_LATEST_RELEASE
- UT3_DEVELOP_SCHEMA=UT3_DEVELOP
- UT3_DEVELOP_SCHEMA_PASSWORD=ut3
- UT3_RELEASE_VERSION_SCHEMA=UT3
- UT3_RELEASE_VERSION_SCHEMA_PASSWORD=ut3
- UT3_USER="UT3\$USER#"
- UT3_USER_PASSWORD=ut3
- UT3_TESTER=ut3_tester
- UT3_TESTER=UT3_TESTER
- UT3_TESTER_PASSWORD=ut3
- UT3_TESTER_HELPER=ut3_tester_helper
- UT3_TESTER_HELPER=UT3_TESTER_HELPER
- UT3_TESTER_HELPER_PASSWORD=ut3
- UT3_TABLESPACE=users
# Environment for building a release
Expand Down
41 changes: 23 additions & 18 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
cd source
set -ev

INSTALL_FILE="install_headless_with_trigger.sql"
if [[ ! -f "${INSTALL_FILE}" ]]; then
INSTALL_FILE="install_headless.sql"
fi

#install core of utplsql
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
whenever sqlerror exit failure rollback
Expand All @@ -11,33 +16,33 @@ set verify off

--alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)';
alter session set plsql_optimize_level=0;
@install_headless_with_trigger.sql $UT3_OWNER $UT3_OWNER_PASSWORD
@${INSTALL_FILE} $UT3_DEVELOP_SCHEMA $UT3_DEVELOP_SCHEMA_PASSWORD
SQL

#Run this step only on second child job (12.1 - at it's fastest)
if [[ "${TRAVIS_JOB_NUMBER}" =~ \.2$ ]]; then

#check code-style for errors
time "$SQLCLI" $UT3_OWNER/$UT3_OWNER_PASSWORD@//$CONNECTION_STR @../development/utplsql_style_check.sql
time "$SQLCLI" $UT3_DEVELOP_SCHEMA/$UT3_DEVELOP_SCHEMA_PASSWORD@//$CONNECTION_STR @../development/utplsql_style_check.sql

#test install/uninstall process
time "$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off
whenever sqlerror exit failure rollback

@uninstall_all.sql $UT3_OWNER
@uninstall_all.sql $UT3_DEVELOP_SCHEMA
whenever sqlerror exit failure rollback
declare
v_leftover_objects_count integer;
begin
select sum(cnt)
into v_leftover_objects_count
from (
select count(1) cnt from dba_objects where owner = '$UT3_OWNER'
select count(1) cnt from dba_objects where owner = '$UT3_DEVELOP_SCHEMA'
where object_name not like 'PLSQL_PROFILER%' and object_name not like 'DBMSPCC_%'
union all
select count(1) cnt from dba_synonyms where table_owner = '$UT3_OWNER'
select count(1) cnt from dba_synonyms where table_owner = '$UT3_DEVELOP_SCHEMA'
where table_name not like 'PLSQL_PROFILER%' and table_name not like 'DBMSPCC_%'
);
if v_leftover_objects_count > 0 then
Expand All @@ -52,9 +57,9 @@ SQL
set verify off

alter session set plsql_optimize_level=0;
@install.sql $UT3_OWNER
@install_ddl_trigger.sql $UT3_OWNER
@create_synonyms_and_grants_for_public.sql $UT3_OWNER
@install.sql $UT3_DEVELOP_SCHEMA
@install_ddl_trigger.sql $UT3_DEVELOP_SCHEMA
@create_synonyms_and_grants_for_public.sql $UT3_DEVELOP_SCHEMA
SQL

fi
Expand All @@ -65,8 +70,8 @@ set feedback off
whenever sqlerror exit failure rollback

--------------------------------------------------------------------------------
PROMPT Adding back create-trigger privilege to $UT3_OWNER for testing
grant administer database trigger to $UT3_OWNER;
PROMPT Adding back create-trigger privilege to $UT3_DEVELOP_SCHEMA for testing
grant administer database trigger to $UT3_DEVELOP_SCHEMA;

--------------------------------------------------------------------------------
PROMPT Creating $UT3_TESTER - Power-user for testing internal framework code
Expand All @@ -76,27 +81,27 @@ grant create session, create procedure, create type, create table to $UT3_TESTER

grant execute on dbms_lock to $UT3_TESTER;

PROMPT Granting $UT3_OWNER code to $UT3_TESTER
PROMPT Granting $UT3_DEVELOP_SCHEMA code to $UT3_TESTER

begin
for i in (
select object_name from all_objects t
where t.object_type in ('PACKAGE','TYPE')
and owner = 'UT3'
and owner = '$UT3_DEVELOP_SCHEMA'
and generated = 'N'
and object_name not like 'SYS%')
loop
execute immediate 'grant execute on $UT3_OWNER."'||i.object_name||'" to $UT3_TESTER';
execute immediate 'grant execute on $UT3_DEVELOP_SCHEMA."'||i.object_name||'" to $UT3_TESTER';
end loop;
end;
/

PROMPT Granting $UT3_OWNER tables to $UT3_TESTER
PROMPT Granting $UT3_DEVELOP_SCHEMA tables to $UT3_TESTER

begin
for i in ( select table_name from all_tables t where owner = 'UT3' and nested = 'NO' and iot_name is null)
for i in ( select table_name from all_tables t where owner = '$UT3_DEVELOP_SCHEMA' and nested = 'NO' and iot_name is null)
loop
execute immediate 'grant select on $UT3_OWNER.'||i.table_name||' to $UT3_TESTER';
execute immediate 'grant select on $UT3_DEVELOP_SCHEMA.'||i.table_name||' to $UT3_TESTER';
end loop;
end;
/
Expand All @@ -119,11 +124,11 @@ PROMPT Grants for testing distributed transactions
grant create public database link to $UT3_TESTER_HELPER;
grant drop public database link to $UT3_TESTER_HELPER;

PROMPT Grants for testing coverage outside of main UT3 schema.
PROMPT Grants for testing coverage outside of main $UT3_DEVELOP_SCHEMA schema.
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type,
select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table,
select any dictionary, create any synonym, drop any synonym,
grant any object privilege, grant any privilege
grant any object privilege, grant any privilege, create public synonym, drop public synonym
to $UT3_TESTER_HELPER;

grant create job to $UT3_TESTER_HELPER;
Expand Down
8 changes: 4 additions & 4 deletions .travis/install_utplsql_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ set trimspool on
declare
i integer := 0;
begin
dbms_output.put_line('Dropping synonyms pointing to schema '||upper('${UT3_OWNER}'));
dbms_output.put_line('Dropping synonyms pointing to schema '||upper('${UT3_DEVELOP_SCHEMA}'));
for syn in (
select
case when owner = 'PUBLIC'
then 'public synonym '
else 'synonym ' || owner || '.' end || synonym_name as syn_name,
table_owner||'.'||table_name as for_object
from all_synonyms s
where table_owner = upper('${UT3_OWNER}') and table_owner != owner
where table_owner = upper('${UT3_DEVELOP_SCHEMA}') and table_owner != owner
)
loop
i := i + 1;
Expand All @@ -28,7 +28,7 @@ begin
dbms_output.put_line('Dropped '||syn.syn_name||' for object '||syn.for_object);
exception
when others then
dbms_output.put_line('FAILED to drop '||syn.syn_name||' for object '||syn.for_object);
dbms_output.put_line('FAILED to drop '||syn.syn_name||' for object '||syn.for_object||' with error '||sqlerrm);
end;
end loop;
dbms_output.put_line(i||' synonyms dropped');
Expand All @@ -45,7 +45,7 @@ fi
alter session set plsql_optimize_level=0;
alter session set plsql_ccflags = 'SELF_TESTING_INSTALL:TRUE';

@${INSTALL_FILE} ${UT3_RELEASE_VERSION_SCHEMA}
@${INSTALL_FILE} ${UT3_RELEASE_VERSION_SCHEMA} ${UT3_RELEASE_VERSION_SCHEMA_PASSWORD}
exit
SQL

Expand Down
9 changes: 4 additions & 5 deletions .travis/run_examples.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/bash

cd "$(dirname "$(readlink -f "$0")")"/../examples

set -ev

"$SQLCLI" $UT3_OWNER/$UT3_OWNER_PASSWORD@//$CONNECTION_STR <<SQL
whenever sqlerror exit failure rollback
whenever oserror exit failure rollback
"$SQLCLI" $UT3_DEVELOP_SCHEMA/$UT3_DEVELOP_SCHEMA_PASSWORD@//$CONNECTION_STR <<SQL

cd examples
@RunAllExamplesAsTests.sql

exit

SQL
SQL
11 changes: 3 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ Your local environment can be of any flavor (Unix/Linux/Windows/Mac).
At minimum you need to have Oracle database 11.2 XE accessible for the project and SYS account access to install and develop utPLSQL.

We use four different database accounts (users) for development process.
* `ut3_latest_release` - holds latest released version of utPLSQL. This schema holds the testing framework used for self-testing of utPLSQL development.
* `ut3` - holds the version of utPLSQL of your current branch. This is the schema you will be working on.
* `ut3` - holds latest released version of utPLSQL. This schema holds the testing framework used for self-testing of utPLSQL development.
* `ut3_develop` - holds the version of utPLSQL of your current branch. This is the schema you will be working on.
* `ut3_tester` - holds unit test packages for development of utPLSQL.
* `ut3$user#` - used for testing accessibility to schema names with special characters.
* `ut3_tester_helper` - elevated privileges user, used for creating and dropping objects in other schemas during test run.



Expand Down Expand Up @@ -89,12 +90,6 @@ export CONNECTION_STR=127.0.0.1:1521/xe # Adjust the connect string
export ORACLE_PWD=oracle # Adjust your local SYS password
```

### Download Oracle JDBC drivers

Download `ojdbc8-xxx.jar` and `orai18n-xxx.jar` from [Oracle](https://www.oracle.com/technetwork/database/features/jdbc/jdbc-ucp-122-3110062.html).
Place them in `development` directory of the project.


### Download utPLSQL release sources and utplsq-cli

The below script is fetching latest release version from utPLSQL repository. Latest release version is used for self-testing.
Expand Down
4 changes: 2 additions & 2 deletions development/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ set echo on
begin
for x in (
select * from dba_objects
where owner in ( upper('${UT3_RELEASE_VERSION_SCHEMA}'), upper('${UT3_OWNER}') )
where owner in ( upper('${UT3_RELEASE_VERSION_SCHEMA}'), upper('${UT3_DEVELOP_SCHEMA}') )
and object_name like 'SYS_PLSQL%')
loop
execute immediate 'drop type '||x.owner||'.'||x.object_name||' force';
end loop;
end;
/

drop user ${UT3_OWNER} cascade;
drop user ${UT3_DEVELOP_SCHEMA} cascade;
drop user ${UT3_RELEASE_VERSION_SCHEMA} cascade;
drop user ${UT3_TESTER} cascade;
drop user ${UT3_TESTER_HELPER} cascade;
Expand Down
2 changes: 1 addition & 1 deletion development/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if ! development/cleanup.sh; then
exit 1
fi
if ! .travis/install.sh; then
echo -e ${header}"\nFailed to install utPLSQL from current branch into ${UT3_OWNER} schema\n"${header}
echo -e ${header}"\nFailed to install utPLSQL from current branch into ${UT3_DEVELOP_SCHEMA} schema\n"${header}
exit 1
fi
if ! .travis/install_utplsql_release.sh; then
Expand Down
1 change: 0 additions & 1 deletion development/refresh_sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ curl -Lk -o utPLSQL-cli.zip https://github.com/utPLSQL/utPLSQL-cli/releases/down
# unzip utPLSQL-cli and remove the zip file
unzip utPLSQL-cli.zip && chmod u+x utPLSQL-cli/bin/utplsql && rm utPLSQL-cli.zip

cp development/*.jar utPLSQL-cli/lib/
4 changes: 2 additions & 2 deletions development/refresh_ut3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git rev-parse && cd "$(git rev-parse --show-cdup)"
cd source

"${SQLCLI}" sys/${ORACLE_PWD}@//${CONNECTION_STR} AS SYSDBA <<-SQL
@uninstall ${UT3_OWNER}
@install ${UT3_OWNER}
@uninstall ${UT3_DEVELOP_SCHEMA}
@install ${UT3_DEVELOP_SCHEMA}
exit
SQL
11 changes: 6 additions & 5 deletions development/template.env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ export UTPLSQL_CLI_VERSION="3.1.6"
export SELFTESTING_BRANCH=develop

export UTPLSQL_DIR="utPLSQL_latest_release"
export UT3_OWNER=ut3
export UT3_OWNER_PASSWORD=ut3
export UT3_RELEASE_VERSION_SCHEMA=ut3_latest_release
export UT3_TESTER=ut3_tester
export UT3_DEVELOP_SCHEMA=UT3_DEVELOP
export UT3_DEVELOP_SCHEMA_PASSWORD=ut3
export UT3_RELEASE_VERSION_SCHEMA=UT3
export UT3_RELEASE_VERSION_SCHEMA_PASSWORD=ut3
export UT3_TESTER=UT3_TESTER
export UT3_TESTER_PASSWORD=ut3
export UT3_TESTER_HELPER=ut3_tester_helper
export UT3_TESTER_HELPER=UT3_TESTER_HELPER
export UT3_TESTER_HELPER_PASSWORD=ut3
export UT3_TABLESPACE=users
export UT3_USER="UT3\$USER#"
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Amongst many benefits they provide ability to:
* use many reporting formats simultaneously and save reports to files (publish)
* map your project source files and test files into database objects

Just download the [latest client](https://github.com/utPLSQL/utPLSQL-cli/releases/latest), download Oracle jdbc driver you are good to go.
Download the [latest client](https://github.com/utPLSQL/utPLSQL-cli/releases/latest) and you are good to go.
See [project readme](https://github.com/utPLSQL/utPLSQL-cli/blob/develop/README.md) for details.

# Coverage
Expand Down
10 changes: 8 additions & 2 deletions docs/userguide/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2064,9 +2064,15 @@ When processing the test suite `test_employee_pkg` defined in [Example of annota

## sys_context

It is possible to access information about currently running suite, test and befire/after procedure form within PLSQL procedure using SYS_CONTEXT.

It is possible to access information about currently running suite.
The information is available by calling `sys_context( 'UT3_INFO', attribute )`.
It can be accessed from any procecure invoked as part of utPLSQL test execution.

**Note:**
> Context name is derived from schema name where utPLSQL is installed.
> The context name in below examples represents the default install schema -> `UT3`
> If you install utPLSQL into another schema the context name will be different.
> For example if utPLSQL is installed into `HR` schema, the context name will be `HR_INFO`

Following attributes are populated:
- Always:
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ By default, utPLSQL will convert file paths into database objects using the foll
> This is done to simplify the syntax of regular expressions. Regular expression will always use '/' as a directory separator on a file path regardless of whether you're on a Windows or Unix system.

**Note**
> Below examples assume that you have downloaded latest version of [utPLSQL-cli](https://github.com/utPLSQL/utPLSQL-cli/releases), extracted it into your projects root directory (my_project) and placed ojdbc8.jar and orai18n.jar files in utPLSQL-cli\lib directory.
> Below examples assume that you have downloaded latest version of [utPLSQL-cli](https://github.com/utPLSQL/utPLSQL-cli/releases) and extracted it into your projects root directory (my_project).
> The examples assume that you run the utPLSQL-cli from `my_project` directory.

Windows:
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ To grant utPLSQL to an individual user, execute scripts `source/create_user_gran
Example invocation:
```bash
cd source
sqlplus ut3_user/ut3_password@database @create_user_grants.sql ut3 hr
sqlplus ut3_owner_schema/ut3_password@database @create_user_grants.sql ut3 hr
sqlplus user/user_password@database @create_user_synonyms.sql ut3 hr
```

Expand Down
1 change: 0 additions & 1 deletion docs/userguide/running-unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ curl -Lk "${DOWNLOAD_URL}" -o utplsql-cli.zip
unzip -q utplsql-cli.zip
```

Keep in mind that you will need to download/provide Oracle JDBC driver separately, as it is not part of utPLSQL-cli due to licensing restrictions.

# ut.run

Expand Down
4 changes: 2 additions & 2 deletions examples/RunAllExamples.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROMPT Run all examples
set echo off
set feedback off
set echo on
set feedback on
set linesize 1000

declare
Expand Down
4 changes: 2 additions & 2 deletions examples/RunDeveloperExamples.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PROMPT Run developer examples
Clear Screen
set echo off
set feedback off
set echo on
set feedback on
set linesize 1000

exec ut_ansiconsole_helper.color_enabled(true);
Expand Down
4 changes: 2 additions & 2 deletions examples/RunUserExamples.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROMPT Run user examples
set echo off
set feedback off
set echo on
set feedback on
set linesize 1000

prompt Common examples from web
Expand Down
2 changes: 1 addition & 1 deletion examples/between_string/run_betwnstr_test_coverage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set serveroutput on size unlimited format truncated
set feedback off
set termout off
spool coverage.html
exec ut.run(user, ut_coverage_html_reporter(a_project_name=>'Demo of between string function tests', a_include_object_list=>ut_varchar2_list('ut3.betwnstr')));
exec ut.run(user, ut_coverage_html_reporter(a_project_name=>'Demo of between string function tests', a_include_object_list=>ut_varchar2_list('betwnstr')));
spool off


Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Amongst many benefits it provides ability to:
* use many reporting formats simultaneously and save reports to files (publish)
* map your project source files and test files into database objects

Just download the [latest client](https://github.com/utPLSQL/utPLSQL-cli/releases/latest), download Oracle jdbc driver you are good to go.
Download the [latest client](https://github.com/utPLSQL/utPLSQL-cli/releases/latest) and are good to go.
See [project readme](https://github.com/utPLSQL/utPLSQL-cli/blob/develop/README.md) for details.


Expand Down
4 changes: 0 additions & 4 deletions source/core/session_context/ut_session_context.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ create or replace package body ut_session_context as
See the License for the specific language governing permissions and
limitations under the License.
*/
$IF $$SELF_TESTING_INSTALL $THEN
gc_context_name constant varchar2(30) := ut_utils.ut_owner()||'_INFO';
$ELSE
gc_context_name constant varchar2(30) := 'UT3_INFO';
$END

procedure set_context(a_name varchar2, a_value varchar2) is
begin
Expand Down
Loading