Skip to content

Commit 173d238

Browse files
committed
Cleanup of examples.
Removed legacy `ut_assert` Removed references ot legacy `ut_assert` Removed tests for `ut_assert` - they are duplication of `matcher` tests.
1 parent 4b1b0d9 commit 173d238

92 files changed

Lines changed: 142 additions & 1003 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/RunAllExamples.sql

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ Clear Screen
33
set echo off
44
set feedback off
55
set linesize 1000
6-
prompt RunExampleComplexSuiteWithCustomDBMSOutputReporter
7-
@@RunExampleComplexSuiteWithCustomDBMSOutputReporter.sql
8-
prompt RunExampleTestAnnotationBasedForCurrentSchema
9-
@@RunExampleTestAnnotationBasedForCurrentSchema.sql
10-
prompt RunExampleTestAnnotationsHugePackage
11-
@@RunExampleTestAnnotationsHugePackage.sql
6+
7+
--developer examples
8+
prompt RunExampleComplexSuiteWithCustomReporter
9+
@@developer_examples/RunExampleComplexSuiteWithCustomReporter.sql
10+
prompt RunExampleTestSuiteWithCustomReporter
11+
@@developer_examples/RunExampleTestSuiteWithCustomReporter.sql
12+
prompt RunExampleTestAnnotationsParsingTimeHugePackage
13+
@@developer_examples/RunExampleTestAnnotationsParsingTimeHugePackage.sql
1214
prompt RunExampleTestSuite
13-
@@RunExampleTestSuite.sql
15+
@@developer_examples/RunExampleTestSuite.sql
1416
prompt RunExampleTestSuiteWithCompositeReporter
15-
@@RunExampleTestSuiteWithCompositeReporter.sql
16-
prompt RunExampleTestSuiteWithCustomDBMSOutputReporter
17-
@@RunExampleTestSuiteWithCustomDBMSOutputReporter.sql
18-
prompt RunExampleTestSuiteWithDBMSOutputReporter
19-
@@RunExampleTestSuiteWithDBMSOutputReporter.sql
20-
prompt RunExampleTestThroughBaseClass
21-
@@RunExampleTestThroughBaseClass.sql
17+
@@developer_examples/RunExampleTestSuiteWithCompositeReporter.sql
18+
19+
20+
prompt RunExampleTestAnnotationBasedForCurrentSchema
21+
@@RunExampleTestAnnotationBasedForCurrentSchema.sql
2222
prompt RunExpectations
2323
@@RunExpectations.sql
2424

@@ -27,3 +27,4 @@ prompt RunExpectations
2727
@@award_bonus/run_award_bonus_test.sql
2828
@@between_string/run_betwnstr_test.sql
2929
@@remove_rooms_by_name/run_remove_rooms_by_name_test.sql
30+
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
--Shows how to create a test suite with the default reporter which is dbms_output
2-
--No tables are used for this.
3-
--Suite Management packages are when developed will make this easier.
41
--Clear Screen
52
Set Serveroutput On Size Unlimited format truncated
63
set echo off
74
--install the example unit test packages
85
@@test_pkg1.pck
96
@@test_pkg2.pck
10-
@@ut_custom_reporter.tps
11-
@@ut_custom_reporter.tpb
127

138
begin
14-
ut.run(user, ut_custom_reporter(a_tab_size => 2));
9+
ut.run(user, ut_documentation_reporter());
1510
end;
1611
/
1712

18-
drop type ut_custom_reporter;
1913
drop package test_pkg1;
2014
drop package test_pkg2;

examples/RunExampleTestSuiteWithDBMSOutputReporter.sql

Lines changed: 0 additions & 45 deletions
This file was deleted.

examples/RunExampleTestThroughBaseClass.sql

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/RunExpectations.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ set echo off
99
@@department.tps
1010
@@departments.tps
1111
@@demo_expectations.pck
12-
@@ut_custom_reporter.tps
13-
@@ut_custom_reporter.tpb
1412

1513
begin
1614
ut.run(user, ut_documentation_reporter());
1715
end;
1816
/
1917

20-
drop type ut_custom_reporter;
2118
drop package demo_expectations;
2219
drop type departments$;
2320
drop type department$;

examples/RunExampleComplexSuiteWithCustomDBMSOutputReporter.sql renamed to examples/developer_examples/RunExampleComplexSuiteWithCustomReporter.sql

File renamed without changes.

examples/RunExampleTestAnnotationsHugePackage.sql renamed to examples/developer_examples/RunExampleTestAnnotationsParsingTimeHugePackage.sql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
--Shows how to create a test suite with the default reporter which is dbms_output
2-
--No tables are used for this.
3-
--Suite Management packages are when developed will make this easier.
1+
--Shows that even a very large package specification can be parsed quite quickly
42
--Clear Screen
53
Set Serveroutput On Size Unlimited format truncated
64
set echo off
@@ -9,7 +7,7 @@ set echo off
97

108
declare
119
l_suite ut_suite;
12-
begin
10+
begin
1311
l_suite := ut_suite_manager.config_package(a_owner_name => USER,a_object_name => 'TST_PKG_HUGE');
1412
end;
1513
/
File renamed without changes.

examples/RunExampleTestSuiteWithCompositeReporter.sql renamed to examples/developer_examples/RunExampleTestSuiteWithCompositeReporter.sql

File renamed without changes.

examples/RunExampleTestSuiteWithCustomDBMSOutputReporter.sql renamed to examples/developer_examples/RunExampleTestSuiteWithCustomReporter.sql

File renamed without changes.

0 commit comments

Comments
 (0)