Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature/1042 add and to tags #1250

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 35 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0daab33
Checkpoint
lwasylow Mar 28, 2023
adbc76e
Address too long identified in 11g.
lwasylow Mar 28, 2023
1478b0d
Adding validation for tag expression
lwasylow Mar 29, 2023
b5ad747
Comment out to see why its failing.
lwasylow Mar 29, 2023
06cb054
Revert "Comment out to see why its failing."
lwasylow Mar 29, 2023
e87d39f
Adding validate function, with no calls
lwasylow Mar 29, 2023
97537de
Remove a & from text
lwasylow Mar 29, 2023
2a0f99a
Extra changes and added tests
lwasylow Mar 31, 2023
5b46140
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow Mar 31, 2023
b30688c
Address sonar coverage issues.
lwasylow Apr 1, 2023
0c41a0f
Adding tests covering exception of invalid tags
lwasylow Apr 1, 2023
543685d
Removing that , we will not implement that, there is no benefit at th…
lwasylow Apr 1, 2023
0d3cfa1
Removing force
lwasylow Apr 1, 2023
20e3177
Changing to use Dijkstra algorithm to parse infix notation into postf…
lwasylow Apr 10, 2023
f51cc99
Missing slash at end of type
lwasylow Apr 10, 2023
4b8e2ab
Cleanup.
lwasylow Apr 10, 2023
84e8684
Update tests after removed function
lwasylow Apr 10, 2023
2e7a766
Tidy up tests
lwasylow Apr 10, 2023
cbdf83a
Added ut_stack to uninstall
lwasylow Apr 10, 2023
436eb5b
Addressing test failures and sonar smells
lwasylow Apr 11, 2023
3d77514
Update name
lwasylow Apr 11, 2023
bf6959f
Update tests and code
lwasylow Apr 11, 2023
d8233ff
fixing typo in docs
lwasylow Apr 12, 2023
bd860f6
Removed unused variable
lwasylow Apr 12, 2023
313d5e9
Stage 1 Resolving PR comments
lwasylow Apr 13, 2023
02a071c
Separate tag logic.
lwasylow Apr 13, 2023
b8b66ee
Fix uninstall
lwasylow Apr 14, 2023
077fdb1
Various PR fixe
lwasylow Apr 14, 2023
01e5364
Update tests and code
lwasylow Apr 15, 2023
dc0b4a6
Addressing changes via PR review.
lwasylow Apr 18, 2023
ef1c02b
Update docs
lwasylow Apr 18, 2023
1551ea5
Adding any and none
lwasylow Apr 25, 2023
9dee7e0
Update docs
lwasylow Apr 26, 2023
beb9a3a
Resolving PR
lwasylow Apr 27, 2023
46ffe73
Update note
lwasylow Apr 27, 2023
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
Address too long identified in 11g.
Address flaky expression checker to be reworked.
  • Loading branch information
lwasylow committed Mar 28, 2023
commit adbc76eb027f8425975b8277d4a10e2ec9ce7f7c
6 changes: 4 additions & 2 deletions 6 source/api/ut_runner.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ create or replace package body ut_runner is
ut_event_manager.trigger_event(ut_event_manager.gc_initialize);
ut_event_manager.trigger_event(ut_event_manager.gc_debug, ut_run_info());

--Verify tag tag expression is valid
if regexp_like(l_tags,'[&|]{2,}|[!-]{2,}|[!-][&|]|[^-&|!]+[-!]|[-!|&][)]')
--TODO:Verify tag tag expression is valid
/*
if regexp_like(l_tags,'[&|]{2,}|[!-]{2,}|[!-][&|]|[^-&|!,]+[-!]|[-!|&][)]')
or (regexp_count(l_tags,'\(') <> regexp_count(l_tags,'\)')) then
raise_application_error(ut_utils.gc_invalid_tag_expression, 'Invalid Tag expression');
end if;
*/
if a_random_test_order_seed is not null then
l_random_test_order_seed := a_random_test_order_seed;
elsif a_random_test_order then
Expand Down
10 changes: 5 additions & 5 deletions 10 source/core/ut_suite_cache_manager.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ create or replace package body ut_suite_cache_manager is
l_tags := replace(replace_legacy_tag_notation(l_tags),' ');
end if;
l_tags := REGEXP_REPLACE(l_tags,
'(\(|\)|\||\!|\&)?([^|&!-]+)(\(|\)|\||\!|\&)?',
'(\(|\)|\||\!|\&)?([^|&!-()]+)(\(|\)|\||\!|\&)?',
q'[\1q'<\2>' member of tags\3]');
--replace operands to XPath
l_tags := REGEXP_REPLACE(l_tags, '\|',' or ');
Expand Down Expand Up @@ -310,23 +310,23 @@ with
from suites_mv c where c.self_type in ('UT_TEST')
and ]'||l_tags||q'[
),
tests_with_tags_inherited_from_suite as (
tests_with_tags_inh_from_suite as (
select c.id,c.self_type,c.path,c.tags multiset union distinct t.tags tags,c.object_owner
from suites_mv c join suites_matching_expr t
on (c.path||'.' like t.path || '.%' /*all descendants and self*/ and c.object_owner = t.object_owner)
),
tests_with_tags_promoted_to_suites as (
tests_with_tags_prom_to_suite as (
select c.id,c.self_type,c.path,c.tags multiset union distinct t.tags tags,c.object_owner
from suites_mv c join tests_matching_expr t
on (t.path||'.' like c.path || '.%' /*all ancestors and self*/ and c.object_owner = t.object_owner)
)
select obj from suites_mv c,
(select id,row_number() over (partition by id order by id) r_num from
(select id
from tests_with_tags_promoted_to_suites tst
from tests_with_tags_prom_to_suite tst
where ]'||l_tags||q'[
union all
select id from tests_with_tags_inherited_from_suite tst
select id from tests_with_tags_inh_from_suite tst
where ]'||l_tags||q'[
)
) t where c.id = t.id and r_num = 1 ]';
Expand Down
5 changes: 1 addition & 4 deletions 5 source/core/ut_suite_cache_manager.pks
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ create or replace package ut_suite_cache_manager authid definer is
a_package_name varchar2,
a_procedure_name varchar2
) return boolean;


function create_where_filter(a_tags varchar2
) return varchar2;

end ut_suite_cache_manager;
/
Morty Proxy This is a proxified and sanitized view of the page, visit original site.