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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c787e47
Added support for multiple occurrences of before and after blocks.
jgebal Mar 4, 2018
2399981
tmp
jgebal Mar 14, 2018
2631355
Fixed issue with null items list.
jgebal Mar 15, 2018
a05475a
Redefined event listeners mechanism.
jgebal Mar 25, 2018
f955d2a
Redefined event listeners mechanism.
jgebal Mar 25, 2018
430f76f
Fixed minor bug in XUnit reporter (showing CDATA for errors even when…
jgebal Mar 25, 2018
2537ced
Changed propagation of rollback. Now rollback will propagate from par…
jgebal Mar 29, 2018
9308662
Fixed examples.
jgebal Mar 29, 2018
17ee8cb
Fixed test for empty description in 11g.
jgebal Mar 29, 2018
93be873
Fixed test for empty description in 11g.
jgebal Mar 29, 2018
75b96c3
Fixed double warning on missing endcontext annotation.
jgebal Mar 29, 2018
a6dadcc
fix in test to overcome 11g XML missing attributes in 3.0.4
jgebal Mar 30, 2018
4bc7ced
Merge branch 'develop' into feature/support_of_context
jgebal Apr 7, 2018
8a26845
Fixes after merging from develop.
jgebal Apr 7, 2018
e9c4e80
Fixed test failure on 11g R2 - some issues with LIKE operator, long p…
jgebal Apr 7, 2018
bfbfa43
Updated documentation.
jgebal Apr 7, 2018
9cd61bf
Marking first column as bold
jgebal Apr 7, 2018
1adf35d
Changed the way reporters events are registered.
jgebal Apr 14, 2018
71d0b70
Fixed issues with comment-replace in big package specs.
jgebal Apr 14, 2018
8617613
Updated test for comments removal to include multi-line comments with…
jgebal Apr 16, 2018
51ba943
Updated documentation with new and changed annotations.
jgebal Apr 16, 2018
ad3f830
Changed behaviour for duplicate annotations - first wins.
jgebal Apr 19, 2018
4346b57
Updates to documentation.
jgebal Apr 20, 2018
b1ff0fc
Updates to documentation.
jgebal Apr 20, 2018
ab5a1ca
Updated and extended documentation for annotations.
jgebal Apr 22, 2018
e672ef0
Added description of `context` to annotations documentation.
jgebal Apr 22, 2018
9897247
Merge remote-tracking branch 'origin/develop' into feature/support_of…
jgebal Apr 22, 2018
b2df93e
Integrated with develop branch changes.
jgebal Apr 22, 2018
d604127
Removed empty header from documentation.
jgebal Apr 24, 2018
9afb7be
A bit of code cleanup and tests alignment.
jgebal Apr 25, 2018
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
Merge branch 'develop' into feature/support_of_context
# Conflicts:
#	source/api/ut_runner.pkb
#	source/core/ut_utils.pks
#	source/reporters/ut_teamcity_reporter.tpb
  • Loading branch information
jgebal committed Apr 7, 2018
commit 4bc7ced9f3513fd3fb82be8d4bf3d66687a3ed2e
52 changes: 27 additions & 25 deletions source/api/ut_runner.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ create or replace package body ut_runner is
rollback;
raise;
end;
if a_fail_on_errors and l_run.result in (ut_utils.tr_failure, ut_utils.tr_error) then
if a_fail_on_errors and l_run.result in (ut_utils.gc_failure, ut_utils.gc_error) then
raise_application_error(ut_utils.gc_some_tests_failed, 'Some tests failed');
end if;
end;
Expand Down Expand Up @@ -146,34 +146,36 @@ create or replace package body ut_runner is
return;
end;

function get_reporters_list return tt_reporters_info pipelined is
function get_reporters_list return tt_reporters_info pipelined
AS
l_cursor sys_refcursor;
l_owner varchar2(128) := upper(ut_utils.ut_owner());
l_owner varchar2(128) := ut_utils.ut_owner();
l_results tt_reporters_info;
c_bulk_limit constant integer := 10;
l_view_name varchar2(200) := ut_metadata.get_dba_view('dba_types');
begin
open l_cursor for q'[
SELECT
owner || '.' || type_name,
CASE
WHEN sys_connect_by_path(owner||'.'||type_name,',') LIKE '%]' || l_owner || q'[.UT_OUTPUT_REPORTER_BASE%'
THEN 'Y'
ELSE 'N'
END is_output_reporter
FROM ]'||l_view_name||q'[ t
WHERE instantiable = 'YES'
CONNECT BY supertype_name = PRIOR type_name AND supertype_owner = PRIOR owner
START WITH type_name = 'UT_REPORTER_BASE' AND owner = ']'|| l_owner || '''';
loop
fetch l_cursor bulk collect into l_results limit c_bulk_limit;
for i in 1 .. l_results.count loop
pipe row (l_results(i));
begin
open l_cursor for 'SELECT
owner || ''.'' || type_name,
CASE
WHEN sys_connect_by_path(owner
|| ''.''
|| type_name,'','') LIKE ''%' || l_owner || '''
|| ''.UT_OUTPUT_REPORTER_BASE%'' THEN ''Y''
ELSE ''N''
END
is_output_reporter
FROM dba_types t
WHERE instantiable = ''YES''
CONNECT BY supertype_name = PRIOR type_name AND supertype_owner = PRIOR owner
START WITH type_name = ''UT_REPORTER_BASE'' AND owner = '''|| l_owner || '''';
loop
fetch l_cursor bulk collect into l_results limit c_bulk_limit;
for i in 1 .. l_results.count loop
pipe row (l_results(i));
end loop;
exit when l_cursor%notfound;
end loop;
exit when l_cursor%notfound;
end loop;
close l_cursor;
end;
close l_cursor;
end;

end ut_runner;
/
8 changes: 4 additions & 4 deletions source/core/ut_utils.pks
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ create or replace package ut_utils authid definer is

/* Constants: Test Results */
subtype t_test_result is binary_integer range 0 .. 3;
tr_disabled constant t_test_result := 0; -- test/suite was disabled
tr_success constant t_test_result := 1; -- test passed
tr_failure constant t_test_result := 2; -- one or more expectations failed
tr_error constant t_test_result := 3; -- exception was raised
gc_disabled constant t_test_result := 0; -- test/suite was disabled
gc_success constant t_test_result := 1; -- test passed
gc_failure constant t_test_result := 2; -- one or more expectations failed
gc_error constant t_test_result := 3; -- exception was raised

gc_disabled_char constant varchar2(8) := 'Disabled'; -- test/suite was disabled
gc_success_char constant varchar2(7) := 'Success'; -- test passed
Expand Down
2 changes: 1 addition & 1 deletion source/reporters/ut_teamcity_reporter.tpb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ create or replace type body ut_teamcity_reporter is

self.print_clob(a_test.get_serveroutputs());

if a_test.result = ut_utils.tr_error then
if a_test.result = ut_utils.gc_error then
for i in 1 .. a_test.before_each_list.count loop
if a_test.before_each_list(i).error_backtrace is not null then
l_std_err_msg := l_std_err_msg || 'Before each exception:' || chr(10) || a_test.before_each_list(i).error_backtrace || chr(10);
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.