8000 Release/v3.1.10 by jgebal · Pull Request #1048 · utPLSQL/utPLSQL · GitHub
[go: up one dir, main page]

Skip to content

Release/v3.1.10 #1048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 61 commits into from
Feb 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1f1828f
Updated project version to 3.1.10
jgebal Nov 10, 2019
a33b53d
Updated project version after build [skip ci]
Nov 10, 2019
a2c0a58
Update link for utPLSQL download statistics
jgebal Nov 10, 2019
52794ac
Updated project version after build [skip ci]
Nov 10, 2019
b3973d0
Fixed test dependency on user running them.
jgebal Nov 29, 2019
39d144a
Changed how savepoint name is generated.
jgebal Nov 30, 2019
4bb7a95
Added a hash of owner to the generated savepoint name.
jgebal Nov 30, 2019
f7f9692
Merge pull request #1027 from utPLSQL/feature/minor_test_fixes
jgebal Nov 30, 2019
42053b4
Updated project version after build [skip ci]
Nov 30, 2019
d654ccc
Changed the target location for published documentation.
jgebal Dec 1, 2019
090b74c
Updated project version after build [skip ci]
Dec 1, 2019
e8f4532
Skip as many %endcontext as nested %context annotations
pesse Dec 19, 2019
8df3f7d
Refactoring: Extract function, add variables for readability
pesse Dec 19, 2019
a4d92de
Refactoring: Add clarifying comment
pesse Dec 19, 2019
4d1500f
Refactoring: Move responsibility to get context name completely to ge…
pesse Dec 19, 2019
3c547ec
Fix intendation
pesse Dec 20, 2019
b4c1d72
Refactoring: Use just one return to improve readability
pesse Dec 20, 2019
86185a8
Rewrite get_endcontext_position to be much easier to understand
pesse Dec 20, 2019
89df1dd
Clarify intention of end-position, make it more visible how it's defined
pesse Dec 20, 2019
c61abfa
Get rid of several `in out nocopy` params where `in` would be sufficient
pesse Dec 20, 2019
35acf14
Not necessary to check for IS NOT NULL
pesse Dec 20, 2019
3327fc3
Fix intendation
pesse Dec 20, 2019
587f966
Merge pull request #1035 from utPLSQL/bugfix/nested_context_mixup
jgebal Dec 20, 2019
cef109b
Updated project version after build [skip ci]
Dec 20, 2019
ad0f99d
Fixed repo for publishing github docs.
jgebal Dec 22, 2019
33f5152
Updated project version after build [skip ci]
Dec 22, 2019
8e43a08
Moved validation of `--%throws` annotation values.
jgebal Dec 29, 2019
d33bd80
Updated documentation for whitespace vs null compare.
jgebal Jan 2, 2020
5510555
Fixed documentation.
jgebal Jan 3, 2020
4dea559
Merge pull request #1038 from utPLSQL/bugfix/throws_exceptions_list_p…
jgebal Jan 3, 2020
d02ac94
Changed ordering of tests for suites with context
jgebal Dec 29, 2019
0a4edaf
Test name fix
jgebal Dec 29, 2019
326e055
Added documenting comments for ordering of data from suite_cache.
jgebal Jan 3, 2020
a25b8b7
Updated project version after build [skip ci]
Jan 3, 2020
d708443
Fixed documentation typos.
jgebal Jan 4, 2020
8f38487
Merge pull request #1039 from utPLSQL/feature/update_docs_for_whitesp…
jgebal Jan 4, 2020
d9077a1
Merge pull request #1037 from utPLSQL/feature/test_ordering
jgebal Jan 4, 2020
101bcbf
Updated project version after build [skip ci]
Jan 4, 2020
1b0b8f8
Refactored expectations on compound data
jgebal Feb 15, 2020
8eac19e
Changed maven repo url.
jgebal Feb 15, 2020
d84a684
Removing maven step for obtaining Oracle jdbc drivers - those are now…
jgebal Feb 15, 2020
02ba32b
Removing `/dev/pdbs` directory
jgebal Feb 15, 2020
7363daa
Merge pull request #1044 from utPLSQL/feature/fix_maven_url
jgebal Feb 15, 2020
15d24af
Updated project version after build [skip ci]
Feb 15, 2020
ba90abf
Cleanup and refactoring of annotation cache.
jgebal Aug 5, 2019
335e420
Fixed loophole in privilege check.
jgebal Nov 12, 2019
94f9c43
Merge remote-tracking branch 'origin/develop' into feature/unify_curs…
jgebal Feb 15, 2020
054c39f
Fixed issues with new cursor-results compare query on 11g
jgebal Feb 16, 2020
b39c5be
Added additional tests for annotation cache refresh with/without DDL …
jgebal Feb 17, 2020
5eab4aa
Fixed Teamcity reporting of errors
jgebal Feb 18, 2020
641b3b4
Update install.sh
jgebal Feb 18, 2020
67c4e78
Update test_teamcity_reporter.pkb
jgebal Feb 18, 2020
9c4333e
Merge pull request #1046 from utPLSQL/feature/teamcity_error_reportin…
jgebal Feb 18, 2020
3c0351f
Updated project version after build [skip ci]
Feb 18, 2020
4bed0c4
Merge pull request #1043 from utPLSQL/feature/unify_cursor_compare_be…
jgebal Feb 18, 2020
29b6db4
Updated project version after build [skip ci]
Feb 18, 2020
5d4c33c
Removed unneeded `is_annotated` column
jgebal Feb 22, 2020
62f3154
Merge pull request #986 from utPLSQL/feature/cache_fixes
jgebal Feb 23, 2020
8e54873
Updated project version after build [skip ci]
Feb 23, 2020
a2d1638
Update `releasing.md` file
jgebal Feb 23, 2020
9034250
Updated project version after build [skip ci]
Feb 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated documentation for whitespace vs null compare.
Updated tests o represent the issue more clearly.

Closes #880
  • Loading branch information
jgebal committed Jan 2, 2020
commit d33bd80f4a1b5c7e1c5188fa04ac5fcdfde9bf73
3 changes: 2 additions & 1 deletion docs/userguide/expectations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,8 @@ utPLSQL is capable of comparing compound data-types including:
- It is possible to compare PL/SQL records, collections, varrays and associative arrays. To compare this types of data, use cursor comparison feature of utPLSQL and TABLE operator in SQL query
- On Oracle 11g Release 2 - pipelined table functions are needed (see section [Implicit (Shadow) Types in this artcile](https://oracle-base.com/articles/misc/pipelined-table-functions))
- On Oracle 12c and above - use [TABLE function on nested tables/varrays/associative arrays of PL/SQL records](https://oracle-base.com/articles/12c/using-the-table-operator-with-locally-defined-types-in-plsql-12cr1)

- utPLSQL is not able to distinguish a NULL column/attribute from a column/attribute containing whitespace-only when comparing compound data. This is due to Oracle limitation on of XMLType., utPLSQL is not able to distinguish between
See [issue #880](https://github.com/utPLSQL/utPLSQL/issues/880) for details. *Note: This behavior might be fixed in future relreases, when utPLSQL is no longer depending on XMLType for compound data comparison.*

utPLSQL offers advanced data-comparison options, for comparing compound data-types. The options allow you to:
- define columns/attributes to exclude from comparison
Expand Down
56 changes: 21 additions & 35 deletions test/ut3_user/expectations/test_expectations_cursor.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -2639,7 +2639,7 @@ Check the query and data for errors.';
end;


procedure insginificant_whitespace1 is
procedure space_only_vs_empty is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
Expand All @@ -2650,79 +2650,65 @@ Check the query and data for errors.';
select column_value t1 from table(ut_varchar2_list(' '));
--Assert
ut3.ut.expect( l_actual ).to_equal( l_expected );
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
end;

procedure insginificant_whitespace2 is
procedure tab_only_vs_empty is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
open l_expected for
select ' t ' t1 from dual;
select column_value t1 from table(ut_varchar2_list(''));

open l_actual for
select 't' t1 from dual;
select column_value t1 from table(ut_varchar2_list(chr(9)));
--Assert
ut3.ut.expect( l_actual ).to_equal( l_expected );
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
end;

procedure insginificant_whitespace3 is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
open l_expected for
select 't ' t1 from dual;

open l_actual for
select 't' t1 from dual;
--Assert
ut3.ut.expect( l_actual ).to_equal( l_expected );
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
end;
procedure insginificant_whitespace4 is

procedure insignificant_start_end_space is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
open l_expected for
select ' t' t1 from dual;
select ' t ' t1 from dual;

open l_actual for
select 't' t1 from dual;
--Assert
ut3.ut.expect( l_actual ).to_equal( l_expected );
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
end;
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
end;

procedure insginificant_whitespace5 is
procedure double_vs_single_start_end_ws is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
open l_expected for
select ' ' t1 from dual;
select ' t ' t1 from dual;

open l_actual for
select '' t1 from dual;
select ' t ' t1 from dual;
--Assert
ut3.ut.expect( l_actual ).to_equal( l_expected );
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
end;
end;

procedure nulltowhitespace is
procedure leading_tab_vs_space is
l_actual sys_refcursor;
l_expected sys_refcursor;
begin
open l_expected for
select cast(null as varchar2(2)) t1 from dual;
select ' t' t1 from dual;

open l_actual for
select ' ' t1 from dual;
select chr(9)||'t' t1 from dual;
--Assert
ut3.ut.expect( l_actual ).to_equal( l_expected );
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_be_greater_than(0);
end;

end;
procedure number_from_dual is
l_actual sys_refcursor;
l_expected sys_refcursor;
Expand Down
36 changes: 16 additions & 20 deletions test/ut3_user/expectations/test_expectations_cursor.pks
Original file line number Diff line number Diff line change
Expand Up @@ -417,31 +417,27 @@ create or replace package test_expectations_cursor is

--%test(Check that column name accept non xml characters fix #902)
procedure nonxmlchar_part_of_colname;


/*Oracle Bug not readin properly in xmltable */
--%test ( Compare insiginificant whitespaces scenario 1 )


/*Oracle Bug not reading properly in XMLTable - See - Issue #880 */
--%disabled
--%test ( Space-only string is not equal empty string )
procedure space_only_vs_empty;

/*Oracle Bug not reading properly in XMLTable - See - Issue #880 */
--%disabled
procedure insginificant_whitespace1;
--%test ( Tab-only string is not equal empty string )
procedure tab_only_vs_empty;

--%test ( Compare insiginificant whitespaces scenario 2 )
procedure insginificant_whitespace2;
--%test ( Insignificant start/end whitespaces are considered )
procedure insignificant_start_end_space;

--%test ( Compare insiginificant whitespaces scenario 3 )
procedure insginificant_whitespace3;
--%test ( Double and single leading/trailing space is distinguished )
procedure double_vs_single_start_end_ws;

--%test ( Compare insiginificant whitespaces scenario 4 )
procedure insginificant_whitespace4;
--%test ( Leading Tab vs. Space is distinguished )
procedure leading_tab_vs_space;

/*Oracle Bug not readin properly in xmltable */
--%test ( Compare insiginificant whitespaces scenario 5 )
--%disabled
procedure insginificant_whitespace5;

/*Oracle Bug not readin properly in xmltable */
--%test ( Compare null to whitespace )
--%disabled
procedure nulltowhitespace;

--%test(Check precision of number from dual #907)
procedure number_from_dual;
Expand Down
0