-
Notifications
You must be signed in to change notification settings - Fork 183
/
test_ut_run.pks
148 lines (124 loc) · 5.64 KB
/
test_ut_run.pks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
create or replace package test_ut_run is
--%suite(ut.run)
--%suitepath(utplsql.api)
--%test(ut.version() returns version of the framework)
procedure ut_version;
--%test(ut.fail() marks test as failed)
procedure ut_fail;
procedure create_ut3$user#_tests;
procedure drop_ut3$user#_tests;
--%context(ut_run_procedure)
--%displayname(ut.run() procedure options)
--%beforeall(create_ut3$user#_tests)
--%afterall(drop_ut3$user#_tests)
--%test(Runs all tests in current schema with default reporter when no parameters given)
procedure run_proc_no_params;
--%test(Runs all tests in current schema with specified reporter)
procedure run_proc_specific_reporter;
--%test(Runs all tests in current schema with coverage file list)
procedure run_proc_cov_file_list;
--%test(Runs given package only with package name given as path)
procedure run_proc_pkg_name;
--%test(Runs all from given package with package name given as path and coverage file list)
procedure run_proc_pkg_name_file_list;
--%test(Runs tests from given paths only with paths list)
procedure run_proc_path_list;
--%test(Runs tests from given paths only with paths list and coverage file list)
procedure run_proc_path_list_file_list;
--%test(Runs all tests in current schema using default reporter when null reporter given)
procedure run_proc_null_reporter;
--%test(Runs all tests in current schema with null path provided)
procedure run_proc_null_path;
--%test(Runs all tests in current schema with null path list given)
procedure run_proc_null_path_list;
--%test(Runs all tests in current schema with empty path list given)
procedure run_proc_empty_path_list;
procedure create_suite_with_commit;
procedure drop_suite_with_commit;
--%test(Reports a warning if transaction was invalidated by test with automatic rollback)
--%beforetest(create_suite_with_commit)
--%aftertest(drop_suite_with_commit)
procedure run_proc_warn_on_commit;
procedure create_failing_beforeall_suite;
procedure drop_failing_beforeall_suite;
--%test(Marks child suite as failed when parent's suite beforeall fails)
--%beforetest(create_failing_beforeall_suite)
--%aftertest(drop_failing_beforeall_suite)
procedure run_proc_fail_child_suites;
--%test(Savepoints are working properly on distributed transactions - Issue #839)
--%beforetest(create_suite_with_link)
--%aftertest(drop_suite_with_link)
procedure savepoints_on_db_links;
procedure create_suite_with_link;
procedure drop_suite_with_link;
--%endcontext
--%context(run_proc_transaction_control)
--%beforeall
procedure transaction_setup;
--%afterall
procedure transaction_cleanup;
--%test(Leaves transaction open and uncommitted with a_force_manual_rollback)
procedure run_proc_keep_test_data;
--%test(Leaves transaction open and uncommitted with a_force_manual_rollback with exceptions)
procedure run_proc_keep_test_data_raise;
--%test(Does not impact current transaction when ran without a_force_manual_rollback)
procedure run_proc_discard_test_data;
--%endcontext
--%context(ut_run_function)
--%displayname(ut.run() function options)
--%beforeall(create_ut3$user#_tests)
--%afterall(drop_ut3$user#_tests)
--%test(Runs all tests in current schema with default reporter when no parameters given)
procedure run_func_no_params;
--%test(Runs all tests in current schema with specified reporter)
procedure run_func_specific_reporter;
--%test(Runs all tests in current schema with coverage file list)
procedure run_func_cov_file_list;
--%test(Runs given package only with package name given as path)
procedure run_func_pkg_name;
--%test(Runs all from given package with package name given as path and coverage file list)
procedure run_func_pkg_name_file_list;
--%test(Runs tests from given paths with paths list)
procedure run_func_path_list;
--%test(Runs tests from given paths with paths list and coverage file list)
procedure run_func_path_list_file_list;
--%test(Runs all tests in current schema using default reporter when null reporter given)
procedure run_func_null_reporter;
--%test(Runs all tests in current schema with null path provided)
procedure run_func_null_path;
--%test(Runs all tests in current schema with null path list given)
procedure run_func_null_path_list;
--%test(Runs all tests in current schema with empty path list given)
procedure run_func_empty_path_list;
--%test(Runs all tests in current schema with coverage file list and default reporter)
procedure run_func_cov_file_lst_null_rep;
--%test(Executes successfully an empty suite)
procedure run_func_empty_suite;
--disabled(Makes session wait for lock on 18.1 due to library cache pin wait)
--%test(ut.run - raises after completing all tests if a test fails with ORA-04068 or ORA-04061)
--%beforetest(create_test_suite)
--%aftertest(drop_test_suite)
procedure raise_in_invalid_state;
procedure create_test_suite;
procedure drop_test_suite;
--%test(ut.run - Does not execute suite when specified package is not valid)
--%beforetest(compile_invalid_package)
--%aftertest(drop_invalid_package)
procedure run_in_invalid_state;
procedure compile_invalid_package;
procedure drop_invalid_package;
--%test(Invalidate package specs via rebuild but still execute package)
--%beforetest(generate_invalid_spec)
--%aftertest(drop_invalid_spec)
procedure run_and_revalidate_specs;
procedure generate_invalid_spec;
procedure drop_invalid_spec;
--%test(Provides warnings on invalid annotations)
--%beforetest(create_bad_annot)
--%aftertest(drop_bad_annot)
procedure run_and_report_warnings;
procedure create_bad_annot;
procedure drop_bad_annot;
--%endcontext
end;
/