forked from utPLSQL/utPLSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunAll.sql
More file actions
442 lines (419 loc) · 24.4 KB
/
RunAll.sql
File metadata and controls
442 lines (419 loc) · 24.4 KB
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
set trimspool on
set echo off
set feedback off
set verify off
Clear Screen
set linesize 32767
set pagesize 0
set long 200000000
set longchunksize 1000000
set serveroutput on size unlimited format truncated
@@lib/RunVars.sql
--Global setup
@@helpers/ut_example_tests.pks
@@helpers/ut_example_tests.pkb
@@helpers/check_annotation_parsing.prc
--@@helpers/cre_tab_ut_test_table.sql
create table ut$test_table (val varchar2(1));
@@helpers/ut_transaction_control.pck
@@helpers/department.tps
@@helpers/department1.tps
@@helpers/test_package_3.pck
@@helpers/test_package_1.pck
@@helpers/test_package_2.pck
--Start coverage in develop mode (coverage for utPLSQL framework)
--Regular coverage excludes the framework
exec ut_coverage.coverage_start_develop();
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParseAnnotationMixedWithWrongBeforeProcedure.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParseAnnotationNotBeforeProcedure.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParseComplexPackage.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageAndProcedureLevelAnnotations.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotation.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationAccessibleBy.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationMultilineDeclare.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationWithKeyValue.sql
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationWithMultilineComment.sql
@@ut_expectations/ut.expect.to_be_between.GivesFailureForDifferentValues.sql
@@ut_expectations/ut.expect.to_be_between.GivesFailureWhenActualIsNull.sql
@@ut_expectations/ut.expect.to_be_between.GivesFailureWhenBothActualAndExpectedRangeIsNull.sql
@@ut_expectations/ut.expect.to_be_between.GivesFailureWhenExpectedRangeIsNull.sql
@@ut_expectations/ut.expect.to_be_between.GivesSuccessWhenDifferentTypes.sql
@@ut_expectations/ut.expect.to_be_between.GivesTrueForCorrectValues.sql
@@ut_expectations/ut.expect.to_be_between.with_text.GivesTheProvidedTextAsMessage.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_false.GivesFailureWhenExpessionIsNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_false.GivesFailureWhenExpessionIsTrue.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_false.GivesSuccessWhenExpessionIsFalse.sql
@@ut_expectations/ut.expect.to_be_like.sql
@@ut_expectations/ut.expect.to_be_not_null.GivesFailureWhenActualIsNull.sql
@@ut_expectations/ut.expect.to_be_not_null.GivesSuccessWhenActualIsNotNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_null.anydata.GivesSuccessWhenAnydataIsNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_null.anydata.GivesSuccessWhenObjectPassedIsNull.sql
@@ut_expectations/ut.expect.to_be_null.GivesFailureWhenActualIsNotNull.sql
@@ut_expectations/ut.expect.to_be_null.GivesSuccessWhenActualIsNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_null.refcursor.GivesSuccessWhenCursorIsNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_true.GivesFailureWhenExpessionIsFalse.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_true.GivesFailureWhenExpessionIsNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_true.GivesSuccessWhenExpessionIsTrue.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.anydata.GivesFailureWhenBothObjectsAreNullButDifferentType.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.anydata.GivesFailureWhenComparingDifferentData.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.anydata.GivesFailureWhenOneOfObjectsIsNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.anydata.GivesSuccessWhenBothAnydataAreNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.anydata.GivesSuccessWhenBothObjectsAreNull.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.anydata.GivesSuccessWhenComparingTheSameData.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.anydata.PutsObjectStrucureIntoAssert.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.cursor.GivesFailureForDifferentValues.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.cursor.GivesSuccessForEqualValues.sql
@@lib/RunTest.sql ut_expectations/ut.expect.to_equal.cursor.ReturnsCursorDataForFailure.sql
@@ut_expectations/ut.expect.to_equal.GivesFailureForDifferentDataTypes.sql
@@ut_expectations/ut.expect.to_equal.GivesFailureForDifferentValues.sql
@@ut_expectations/ut.expect.to_equal.GivesFailureWhenActualIsNull.sql
@@ut_expectations/ut.expect.to_equal.GivesFailureWhenBothValuesAreNullAndArgumentAreNullEqualIsFalse.sql
@@ut_expectations/ut.expect.to_equal.GivesFailureWhenBothValuesAreNullAndConfigurationAreNullEqualIsFalse.sql
@@ut_expectations/ut.expect.to_equal.GivesFailureWhenExpectedIsNull.sql
@@ut_expectations/ut.expect.to_equal.GivesSuccessForEqualValues.sql
@@ut_expectations/ut.expect.to_equal.GivesSuccessWhenBothValuesAreNull.sql
@@ut_expectations/ut.expect.to_equal.GivesSuccessWhenBothValuesAreNullAndArgumentAreNullEqualIsTrue.sql
@@ut_expectations/ut.expect.to_equal.PutsNullIntoStringValueWhenActualIsNull.sql
@@ut_expectations/ut.expect.to_equal.PutsNullIntoStringValueWhenExpectedIsNull.sql
@@ut_expectations/ut.expect.to_equal.with_text.GivesTheProvidedTextAsMessage.sql
@@ut_expectations/ut.expect.to_match.sql
@@lib/RunTest.sql ut_expectations/ut_assert_processor.nulls_are_equal.raisesExceptionWhenTryingToSetNullValue.sql
@@ut_matchers/be_between.sql
@@ut_matchers/greater_or_equal.sql
@@ut_matchers/greater_than.sql
@@ut_matchers/less_or_equal.sql
@@ut_matchers/less_than.sql
@@ut_matchers/be_empty.sql
@@lib/RunTest.sql ut_matchers/timestamp_between.sql
@@lib/RunTest.sql ut_matchers/timestamp_ltz_between.sql
@@lib/RunTest.sql ut_matchers/timestamp_ltz_not_between.sql
@@lib/RunTest.sql ut_matchers/timestamp_not_between.sql
@@lib/RunTest.sql ut_matchers/timestamp_tz_between.sql
@@lib/RunTest.sql ut_matchers/timestamp_tz_not_between.sql
@@lib/RunTest.sql ut_metadata/ut_metadata.form_name.TrimStandaloneProgramName.sql
@@lib/RunTest.sql ut_output_buffer/get_lines.RecievesALineFromBufferTableAndDeletes.sql
@@lib/RunTest.sql ut_output_buffer/send_line.DoesNotSendLineIfNullReporterIdGiven.sql
@@lib/RunTest.sql ut_output_buffer/send_line.DoesNotSendLineIfNullTextGiven.sql
@@lib/RunTest.sql ut_output_buffer/send_line.SendsALineIntoBufferTable.sql
@@lib/RunTest.sql ut_run/ut_run.function.WithGivenReporter.ExectutesAllInCurrentSchemaUsingReporter.sql
@@lib/RunTest.sql ut_run/ut_run.function.WithNoParams.ExecutesAllFromCurrentSchema.sql
@@lib/RunTest.sql ut_run/ut_run.function.WithPackageName.ExecutesAllFromGivenPackage.sql
--@@lib/RunTest.sql ut_run/ut_run.function.WithPackageName.ExecutesAllFromGivenPackageOnly.sql --TODO this one doesn't work at the moment
@@lib/RunTest.sql ut_run/ut_run.function.WithSchemaName.ExecutesAllFromGivenSchema.sql
@@lib/RunTest.sql ut_run/ut_run.function.WithSuitePath.ExecutesAllFromGivenPath.sql
@@lib/RunTest.sql ut_run/ut_run.WithGivenReporter.ExectutesAllInCurrentSchemaUsingReporter.sql
@@lib/RunTest.sql ut_run/ut_run.WithNoParams.ExecutesAllFromCurrentSchema.sql
@@lib/RunTest.sql ut_run/ut_run.WithPackageName.ExecutesAllFromGivenPackage.sql
--@@lib/RunTest.sql ut_run/ut_run.WithPackageName.ExecutesAllFromGivenPackageOnly.sql --TODO this one doesn't work at the moment
@@lib/RunTest.sql ut_run/ut_run.WithSchemaName.ExecutesAllFromGivenSchema.sql
@@lib/RunTest.sql ut_run/ut_run.WithSuitePath.ExecutesAllFromGivenPath.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheSchema.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageByPath.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageByPathCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTop2PackageByPath.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTop2PackageByPathCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageWithoutSubsuitesByPath.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageWithoutSubsuitesByPathCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageByName.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageByNameCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTop2PackageByName.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTop2PackageByNameCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageWithoutSubsuitesByName.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageWithoutSubsuitesByNameCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageProcedureByPath.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTopPackageProcedureByPathCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTop2PackageProcedureByPath.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.configure_execution_by_path.PrepareRunnerForTheTop2PackageProcedureByPathCurUser.sql
@@lib/RunTest.sql ut_suite_manager/ut_suite_manager.DoesntFindTheSuiteWhenPackageSpecIsInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.IgnoreFlagSkipTest.sql
@@lib/RunTest.sql ut_test/ut_test.OwnerNameInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.OwnerNameNull.sql
@@lib/RunTest.sql ut_test/ut_test.PackageInInvalidState.sql
@@lib/RunTest.sql ut_test/ut_test.PackageNameInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.PackageNameNull.sql
@@lib/RunTest.sql ut_test/ut_test.ProcedureNameInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.ProcedureNameNull.sql
@@lib/RunTest.sql ut_test/ut_test.Rollback_type.Auto.sql
@@lib/RunTest.sql ut_test/ut_test.Rollback_type.AutoOnFailure.sql
@@lib/RunTest.sql ut_test/ut_test.Rollback_type.Manual.sql
@@lib/RunTest.sql ut_test/ut_test.Rollback_type.ManualOnFailure.sql
@@lib/RunTest.sql ut_test/ut_test.SetupExecutedBeforeTest.sql
@@lib/RunTest.sql ut_test/ut_test.SetupProcedureNameInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.SetupProcedureNameNull.sql
@@lib/RunTest.sql ut_test/ut_test.TeardownExecutedAfterTest.sql
@@lib/RunTest.sql ut_test/ut_test.TeardownProcedureNameInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.TeardownProcedureNameNull.sql
@@lib/RunTest.sql ut_test/ut_test.IgnoreTollbackToSavepointException.sql
@@lib/RunTest.sql ut_test/ut_test.AfterEachExecuted.sql
@@lib/RunTest.sql ut_test/ut_test.AfterEachProcedureNameInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.AfterEachProcedureNameNull.sql
@@lib/RunTest.sql ut_test/ut_test.BeforeEachExecuted.sql
@@lib/RunTest.sql ut_test/ut_test.BeforeEachProcedureNameInvalid.sql
@@lib/RunTest.sql ut_test/ut_test.BeforeEachProcedureNameNull.sql
@@lib/RunTest.sql ut_test/ut_test.TestOutputGathering.sql
@@lib/RunTest.sql ut_test/ut_test.TestOutputGatheringForTeamcity.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ErrorsATestWhenAfterTestFails.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ErrorsATestWhenBeforeTestFails.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ErrorsEachTestWhenBeforeAllFails.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ErrorsEachTestWhenBeforeEachFails.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ErrorsEachTestWhenPackageHasInvalidBody.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ErrorsEachTestWhenPackageHasNoBody.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.IgnoreFlagSkipSuite.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ReportsWarningsATestWhenAfterAllFails.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.ReportsWarningsATestWhenAfterEachFails.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.Rollback_type.Auto.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.Rollback_type.AutoOnFailure.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.Rollback_type.Manual.sql
@@lib/RunTest.sql ut_test_suite/ut_test_suite.Rollback_type.ManualOnFailure.sql
@@ut_utils/ut_utils.clob_to_table.sql
@@lib/RunTest.sql ut_utils/ut_utils.test_result_to_char.RunsWithInvalidValues.sql
@@lib/RunTest.sql ut_utils/ut_utils.test_result_to_char.RunsWithNullValue.sql
@@lib/RunTest.sql ut_utils/ut_utils.test_result_to_char.Success.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.Blob.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.Clob.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.Date.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.NullBlob.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.NullClob.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.NullDate.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.NullNumber.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.NullTimestamp.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.NullVarchar2.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.Timestamp.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.TimestampWithLocalTimeZone.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.TimestampWithTimeZone.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.Varchar2.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.veryBigBlob.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.veryBigClob.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.veryBigNumber.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.veryBigVarchar2.sql
@@lib/RunTest.sql ut_utils/ut_utils.to_string.verySmallNumber.sql
--Finally
@@lib/RunSummary
--Global cleanup
--removing objects that should not be part of coverage report
drop package ut_example_tests;
drop procedure check_annotation_parsing;
drop package ut_transaction_control;
drop table ut$test_table;
drop type department$;
drop type department1$;
drop package test_package_1;
drop package test_package_2;
drop package test_package_3;
set timing on
prompt Flushing coverage data into temp tables
exec ut_coverage.coverage_stop();
prompt Generating coverage data to reporter outputs
var reporter_id varchar2(32);
declare
l_reporter ut_coverage_html_reporter;
begin
l_reporter := ut_coverage_html_reporter(
a_project_name=>'utPLSQL v3 Unit Tests',
a_file_paths => ut_varchar2_list(
'source/api',
'source/core',
'source/create_synonyms_and_grants_for_public.sql',
'source/create_synonyms_and_grants_for_user.sql',
'source/create_utplsql_owner.sql',
'source/expectations',
'source/install.log',
'source/install.sql',
'source/install_headless.sql',
'source/license.txt',
'source/readme.md',
'source/reporters',
'source/uninstall.log',
'source/uninstall.sql',
'source/api/be_between.syn',
'source/api/be_empty.syn',
'source/api/be_false.syn',
'source/api/be_greater_or_equal.syn',
'source/api/be_greater_than.syn',
'source/api/be_less_or_equal.syn',
'source/api/be_less_than.syn',
'source/api/be_like.syn',
'source/api/be_not_null.syn',
'source/api/be_null.syn',
'source/api/be_true.syn',
'source/api/equal.syn',
'source/api/match.syn',
'source/api/ut.pkb',
'source/api/ut.pks',
'source/api/ut_runner.pkb',
'source/api/ut_runner.pks',
'source/core/coverage',
'source/core/types',
'source/core/ut_annotations.pkb',
'source/core/ut_annotations.pks',
'source/core/ut_assert_processor.pkb',
'source/core/ut_assert_processor.pks',
'source/core/ut_message_id_seq.sql',
'source/core/ut_metadata.pkb',
'source/core/ut_metadata.pks',
'source/core/ut_output_buffer.pkb',
'source/core/ut_output_buffer.pks',
'source/core/ut_output_buffer_tmp.sql',
'source/core/ut_suite_manager.pkb',
'source/core/ut_suite_manager.pks',
'source/core/ut_utils.pkb',
'source/core/ut_utils.pks',
'source/core/coverage/proftab_temp_tables.sql',
'source/core/coverage/ut_coverage.pkb',
'source/core/coverage/ut_coverage.pks',
'source/core/coverage/ut_coverage_file_mapping.tps',
'source/core/coverage/ut_coverage_file_mappings.tps',
'source/core/coverage/ut_coverage_helper.pkb',
'source/core/coverage/ut_coverage_helper.pks',
'source/core/coverage/ut_coverage_sources_tmp.sql',
'source/core/types/ut_assert_result.tpb',
'source/core/types/ut_assert_result.tps',
'source/core/types/ut_assert_results.tps',
'source/core/types/ut_console_reporter_base.tpb',
'source/core/types/ut_console_reporter_base.tps',
'source/core/types/ut_coverage_reporter_base.tpb',
'source/core/types/ut_coverage_reporter_base.tps',
'source/core/types/ut_event_listener.tpb',
'source/core/types/ut_event_listener.tps',
'source/core/types/ut_event_listener_base.tps',
'source/core/types/ut_executable.tpb',
'source/core/types/ut_executable.tps',
'source/core/types/ut_key_value_pair.tps',
'source/core/types/ut_key_value_pairs.tps',
'source/core/types/ut_logical_suite.tpb',
'source/core/types/ut_logical_suite.tps',
'source/core/types/ut_object_name.tpb',
'source/core/types/ut_object_name.tps',
'source/core/types/ut_object_names.tps',
'source/core/types/ut_reporters.tps',
'source/core/types/ut_reporter_base.tpb',
'source/core/types/ut_reporter_base.tps',
'source/core/types/ut_results_counter.tpb',
'source/core/types/ut_results_counter.tps',
'source/core/types/ut_run.tpb',
'source/core/types/ut_run.tps',
'source/core/types/ut_suite.tpb',
'source/core/types/ut_suite.tps',
'source/core/types/ut_suite_item.tpb',
'source/core/types/ut_suite_item.tps',
'source/core/types/ut_suite_items.tps',
'source/core/types/ut_suite_item_base.tps',
'source/core/types/ut_test.tpb',
'source/core/types/ut_test.tps',
'source/core/types/ut_varchar2_list.tps',
'source/expectations/data_values',
'source/expectations/matchers',
'source/expectations/ut_expectation.tpb',
'source/expectations/ut_expectation.tps',
'source/expectations/ut_expectation_anydata.tpb',
'source/expectations/ut_expectation_anydata.tps',
'source/expectations/ut_expectation_blob.tpb',
'source/expectations/ut_expectation_blob.tps',
'source/expectations/ut_expectation_boolean.tpb',
'source/expectations/ut_expectation_boolean.tps',
'source/expectations/ut_expectation_clob.tpb',
'source/expectations/ut_expectation_clob.tps',
'source/expectations/ut_expectation_date.tpb',
'source/expectations/ut_expectation_date.tps',
'source/expectations/ut_expectation_dsinterval.tpb',
'source/expectations/ut_expectation_dsinterval.tps',
'source/expectations/ut_expectation_number.tpb',
'source/expectations/ut_expectation_number.tps',
'source/expectations/ut_expectation_refcursor.tpb',
'source/expectations/ut_expectation_refcursor.tps',
'source/expectations/ut_expectation_timestamp.tpb',
'source/expectations/ut_expectation_timestamp.tps',
'source/expectations/ut_expectation_timestamp_ltz.tpb',
'source/expectations/ut_expectation_timestamp_ltz.tps',
'source/expectations/ut_expectation_timestamp_tz.tpb',
'source/expectations/ut_expectation_timestamp_tz.tps',
'source/expectations/ut_expectation_varchar2.tpb',
'source/expectations/ut_expectation_varchar2.tps',
'source/expectations/ut_expectation_yminterval.tpb',
'source/expectations/ut_expectation_yminterval.tps',
'source/expectations/data_values/ut_data_value.tps',
'source/expectations/data_values/ut_data_value_anydata.tpb',
'source/expectations/data_values/ut_data_value_anydata.tps',
'source/expectations/data_values/ut_data_value_blob.tpb',
'source/expectations/data_values/ut_data_value_blob.tps',
'source/expectations/data_values/ut_data_value_boolean.tpb',
'source/expectations/data_values/ut_data_value_boolean.tps',
'source/expectations/data_values/ut_data_value_clob.tpb',
'source/expectations/data_values/ut_data_value_clob.tps',
'source/expectations/data_values/ut_data_value_date.tpb',
'source/expectations/data_values/ut_data_value_date.tps',
'source/expectations/data_values/ut_data_value_dsinterval.tpb',
'source/expectations/data_values/ut_data_value_dsinterval.tps',
'source/expectations/data_values/ut_data_value_number.tpb',
'source/expectations/data_values/ut_data_value_number.tps',
'source/expectations/data_values/ut_data_value_refcursor.tpb',
'source/expectations/data_values/ut_data_value_refcursor.tps',
'source/expectations/data_values/ut_data_value_timestamp.tpb',
'source/expectations/data_values/ut_data_value_timestamp.tps',
'source/expectations/data_values/ut_data_value_timestamp_ltz.tpb',
'source/expectations/data_values/ut_data_value_timestamp_ltz.tps',
'source/expectations/data_values/ut_data_value_timestamp_tz.tpb',
'source/expectations/data_values/ut_data_value_timestamp_tz.tps',
'source/expectations/data_values/ut_data_value_varchar2.tpb',
'source/expectations/data_values/ut_data_value_varchar2.tps',
'source/expectations/data_values/ut_data_value_yminterval.tpb',
'source/expectations/data_values/ut_data_value_yminterval.tps',
'source/expectations/matchers/ut_be_between.tpb',
'source/expectations/matchers/ut_be_between.tps',
'source/expectations/matchers/ut_be_empty.tpb',
'source/expectations/matchers/ut_be_empty.tps',
'source/expectations/matchers/ut_be_false.tpb',
'source/expectations/matchers/ut_be_false.tps',
'source/expectations/matchers/ut_be_greater_or_equal.tpb',
'source/expectations/matchers/ut_be_greater_or_equal.tps',
'source/expectations/matchers/ut_be_greater_than.tpb',
'source/expectations/matchers/ut_be_greater_than.tps',
'source/expectations/matchers/ut_be_less_or_equal.tpb',
'source/expectations/matchers/ut_be_less_or_equal.tps',
'source/expectations/matchers/ut_be_less_than.tpb',
'source/expectations/matchers/ut_be_less_than.tps',
'source/expectations/matchers/ut_be_like.tpb',
'source/expectations/matchers/ut_be_like.tps',
'source/expectations/matchers/ut_be_not_null.tpb',
'source/expectations/matchers/ut_be_not_null.tps',
'source/expectations/matchers/ut_be_null.tpb',
'source/expectations/matchers/ut_be_null.tps',
'source/expectations/matchers/ut_be_true.tpb',
'source/expectations/matchers/ut_be_true.tps',
'source/expectations/matchers/ut_equal.tpb',
'source/expectations/matchers/ut_equal.tps',
'source/expectations/matchers/ut_match.tpb',
'source/expectations/matchers/ut_match.tps',
'source/expectations/matchers/ut_matcher.tpb',
'source/expectations/matchers/ut_matcher.tps',
'source/reporters/ut_ansiconsole_helper.pkb',
'source/reporters/ut_ansiconsole_helper.pks',
'source/reporters/ut_coverage_html_reporter.tpb',
'source/reporters/ut_coverage_html_reporter.tps',
'source/reporters/ut_coverage_report_html_helper.pkb',
'source/reporters/ut_coverage_report_html_helper.pks',
'source/reporters/ut_documentation_reporter.tpb',
'source/reporters/ut_documentation_reporter.tps',
'source/reporters/ut_teamcity_reporter.tpb',
'source/reporters/ut_teamcity_reporter.tps',
'source/reporters/ut_teamcity_reporter_helper.pkb',
'source/reporters/ut_teamcity_reporter_helper.pks',
'source/reporters/ut_xunit_reporter.tpb',
'source/reporters/ut_xunit_reporter.tps')
);
:reporter_id := l_reporter.reporter_id;
l_reporter.after_calling_run(ut_run(ut_suite_items()));
end;
/
prompt Spooling outcomes to coverage.html
set termout off
set feedback off
set arraysize 50
spool coverage.html
--getting data by putting into dbms_output
exec ut_output_buffer.lines_to_dbms_output(:reporter_id);
--getting data by select statement
--select * from table( ut_output_buffer.get_lines(:reporter_id) );
spool off
--can be used by CI to check for tests status
exit :failures_count