You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"${SQLCLI}" sys/${ORACLE_PWD}@//${CONNECTION_STR} AS SYSDBA <<-SQL
9
9
set echo on
10
+
set serveroutput on
10
11
begin
11
12
for x in (
12
13
select * from dba_objects
@@ -25,12 +26,12 @@ drop user ${UT3_USER} cascade;
25
26
26
27
begin
27
28
for i in (
28
-
select decode(owner,'PUBLIC','drop public synonym "','drop synonym "'||owner||'"."')|| synonym_name ||'"' drop_orphaned_synonym from dba_synonyms a
29
+
select decode(owner,'PUBLIC','drop public synonym "','drop synonym "'||owner||'"."')|| synonym_name ||'"' drop_orphaned_synonym, owner||'.'||synonym_name syn from dba_synonyms a
29
30
where not exists (select 1 from dba_objects b where (a.table_name=b.object_name and a.table_owner=b.owner or b.owner='SYS' and a.table_owner=b.object_name) )
@@ -133,33 +142,17 @@ Executes all tests from package _HR.TEST_APPLY_BONUS_ and provide outputs to DBM
133
142
134
143
For details on build-in reporters look at [reporters documentation](reporters.md).
135
144
136
-
## Keeping uncommited data after test-run
137
-
138
-
utPLSQL by default runs tests in autonomous transaction and performs automatic rollback to assure that tests do not impact one-another and do not have impact on the current session in your IDE.
139
-
140
-
If you would like to keep your uncommited data persisted after running tests, you can do so by using `a_force_manual_rollback` flag.
141
-
Setting this flag to true has following side-effects:
142
-
143
-
- test execution is done in current transaction - if while running tests commit or rollback is issued your current session data will get commited too.
144
-
- automatic rollback is forced to be disabled in test-run even if it was explicitly enabled by using annotation `--%rollback(manual)
@@ -180,7 +173,83 @@ The concept is pretty simple.
180
173
- as a separate thread, start `ut_runner.run` and pass reporters with previously defined output_ids.
181
174
- for each reporter start a separate thread and read outputs from the `ut_output_buffer.get_lines` table function by providing the output_id defined in the main thread.
182
175
183
-
# Reports characterset encoding
176
+
# Order of test execution
177
+
178
+
## Default order
179
+
180
+
When unit tests are executed without random order, they are ordered by:
181
+
- schema name
182
+
- suite path or test package name if `--%suitepath` was not specified for that package
183
+
-`--%test` line number in package
184
+
185
+
## Random order
186
+
187
+
You can force a test run to execute tests in random order by providing one of options to `ut.run`:
188
+
-`a_random_test_order` - true/false for procedures and 1/0 for functions
189
+
-`a_random_test_order_seed` - positive number in range of 1 .. 1 000 000 000
190
+
191
+
When tests are executed with random order, randomization is applied to single level of suitepath hierarchy tree.
192
+
This is needed to maintain visibility and accessibility of common setup/cleanup `beforeall`/`afterall` in tests.
>Random order seed must be a positive number within range of 1 .. 1 000 000 000.
230
+
231
+
# Keeping uncommitted data after test-run
232
+
233
+
utPLSQL by default runs tests in autonomous transaction and performs automatic rollback to assure that tests do not impact one-another and do not have impact on the current session in your IDE.
234
+
235
+
If you would like to keep your uncommitted data persisted after running tests, you can do so by using `a_force_manual_rollback` flag.
236
+
Setting this flag to true has following side-effects:
237
+
238
+
- test execution is done in current transaction - if while running tests commit or rollback is issued your current session data will get commited too.
239
+
- automatic rollback is forced to be disabled in test-run even if it was explicitly enabled by using annotation `--%rollback(manual)
>This option is not available when running tests using `ut.run` as a table function.
251
+
252
+
# Reports character-set encoding
184
253
185
254
To get properly encoded reports, when running utPLSQL with HTML/XML reports on data containing national characters you need to provide your client character set when calling `ut.run` functions and procedures.
0 commit comments