Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5dc230

Browse files
committed
Fixed unit test (failing on Windows), added missing unit tests.
1 parent 372baea commit b5dc230

2 files changed

Lines changed: 12 additions & 22 deletions

File tree

tests/RunAll.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ exec ut_coverage.coverage_start_develop();
3939
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParseAnnotationMixedWithWrongBeforeProcedure.sql
4040
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParseAnnotationNotBeforeProcedure.sql
4141
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParseAnnotationParamsWithBrackets.sql
42+
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageAndProcedureLevelAnnotations.sql
43+
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotation.sql
44+
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationAccessibleBy.sql
45+
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationMultilineDeclare.sql
46+
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationWithKeyValue.sql
47+
@@lib/RunTest.sql ut_annotations/ut_annotations.parse_package_annotations.ParsePackageLevelAnnotationWithMultilineComment.sql
4248
@@ut_expectations/ut.expect.not_to_be_null.sql
4349
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_false.GivesFailureWhenExpessionIsNotBoolean.sql
4450
@@lib/RunTest.sql ut_expectations/ut.expect.to_be_false.GivesFailureWhenExpessionIsNull.sql

tests/ut_reporters/ut_documentation_reporter.providesCorrectLineFromStacktrace.sql

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,13 @@ declare
33
l_output varchar2(32767);
44
l_expected varchar2(32767);
55
begin
6-
l_expected := q'[%<!beforeall!>
7-
%passing_test
8-
%<!beforeeach!>
9-
%<!beforetest!>
10-
%<!passing test!>
11-
%<!aftertest!>
12-
%<!aftereach!>
13-
%a test with failing assertion (FAILED - 1)
14-
%<!beforeeach!>
15-
%<!failing test!>
16-
%<!aftereach!>
17-
%a test raising unhandled exception (FAILED - 2)
18-
%<!beforeeach!>
19-
%<!erroring test!>
20-
%<!aftereach!>
21-
%a disabled test (IGNORED)
22-
%<!afterall!>
6+
l_expected := q'[%
237
%Failures:%
24-
%1)%failing_test
25-
%"Fails as values are different"
26-
%Actual: 1 (number) was expected to equal: 2 (number)
27-
%at "%.TEST_REPORTERS%", line%
28-
%2)%erroring_test
8+
%1)%failing_test%
9+
%"Fails as values are different"%
10+
%Actual: 1 (number) was expected to equal: 2 (number)%
11+
%at "%.TEST_REPORTERS%", line%
12+
%2)%erroring_test%
2913
%ORA-06502%
3014
%ORA-06512%
3115
Finished %

0 commit comments

Comments
 (0)