Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
933f41a
Added TAP reporter and synonyms
WayneNani Jul 10, 2025
c5f07a7
Larger variables to prevent failure during reporting
WayneNani Jul 10, 2025
4ed6837
Added TAP Reporter to install script
WayneNani Jul 11, 2025
5e656fe
Add TAP to expected reporters
WayneNani Jul 11, 2025
6f47bb9
Added simple test for TAP reporter
WayneNani Jul 14, 2025
641ef7d
Added failing test for TAP
WayneNani Jul 15, 2025
2500604
Added erroring Test for TAP reporter
WayneNani Jul 15, 2025
9d765a4
Added test for disabled TAP test
WayneNani Jul 16, 2025
ef7f811
Added boilerplate expression for shorter tests
WayneNani Jul 16, 2025
78cc772
Added skipped test with no reason
WayneNani Jul 18, 2025
1e78987
Add explicit spaces for correct indentation
WayneNani Jul 18, 2025
ee22669
Added test for multiple test outcomes in one go
WayneNani Jul 18, 2025
55d5b61
Added serverout for beforetest procedures
WayneNani Jul 18, 2025
e451e4b
Included print of serverout as comment
WayneNani Jul 21, 2025
fb9ef0b
Added suite name escaping
WayneNani Jul 21, 2025
f18981d
Included escaped test name
WayneNani Jul 26, 2025
f1c0f86
Included escaped skip reason
WayneNani Jul 26, 2025
33865dd
Added escaped comment test
WayneNani Jul 27, 2025
a477d68
Central use of comment procedure
WayneNani Jul 27, 2025
2e399fd
Comments shouldn't escape special characters
WayneNani Jul 29, 2025
3193f5b
Added TAP reporter to documentation
WayneNani Aug 2, 2025
707fadd
Added empty lines at the end
WayneNani Mar 16, 2026
7ddbacc
Added tests for contexts and suites
WayneNani Mar 17, 2026
3d38fbe
Added TAP subtests to documentation
WayneNani Mar 17, 2026
18af6b0
Added test for including context when it only contains skipped tests
WayneNani Mar 17, 2026
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
Added tests for contexts and suites
  • Loading branch information
WayneNani committed Mar 17, 2026
commit 7ddbacc4b02faadb614e2855758724d47f99dc75
34 changes: 32 additions & 2 deletions test/ut3_user/reporters/test_tap_reporter.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ create or replace package body test_tap_reporter as
end escape_multiple_characters_test_name;


procedure special_characters_in_deisabled_reason as
procedure special_characters_in_disabled_reason as
l_output_data ut3_develop.ut_varchar2_list;
l_expected varchar2(32767);
begin
Expand All @@ -170,7 +170,7 @@ create or replace package body test_tap_reporter as
from table(ut3_develop.ut.run('test_tap_escaping.not_skipping_escapes',ut3_develop.ut_tap_reporter()));

ut.expect(ut3_tester_helper.main_helper.table_to_clob(l_output_data)).to_be_like(l_expected);
end special_characters_in_deisabled_reason;
end special_characters_in_disabled_reason;


procedure special_characters_in_comment as
Expand All @@ -187,6 +187,36 @@ create or replace package body test_tap_reporter as
end special_characters_in_comment;


procedure context_as_commented_subtests as
l_output_data ut3_develop.ut_varchar2_list;
l_expected varchar2(32767);
begin
l_expected := q'[%# Subtest: A suite for testing different outcomes from reporters%# Subtest: A description of some context%]';

select *
bulk collect into l_output_data
from table(ut3_develop.ut.run('test_reporters.passing_test',ut3_develop.ut_tap_reporter()));

ut.expect(ut3_tester_helper.main_helper.table_to_clob(l_output_data)).to_be_like(l_expected);

end context_as_commented_subtests;


procedure suitepath_as_chopped_subtests as
l_output_data ut3_develop.ut_varchar2_list;
l_expected varchar2(32767);
begin
l_expected := q'[.*# Subtest: org.*1\s{5}# Subtest: utplsql.*1\s{9}# Subtest: tests.*1\s{13}# Subtest: helpers.*1\s{17}# Subtest: A suite for testing different outcomes from reporters.*]';

select *
bulk collect into l_output_data
from table(ut3_develop.ut.run('test_reporters.passing_test',ut3_develop.ut_tap_reporter()));

ut.expect(ut3_tester_helper.main_helper.table_to_clob(l_output_data)).to_match(l_expected, 'n');

end suitepath_as_chopped_subtests;


procedure drop_help_tests as
pragma autonomous_transaction;
begin
Expand Down
8 changes: 7 additions & 1 deletion test/ut3_user/reporters/test_tap_reporter.pks
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ create or replace package test_tap_reporter as
procedure escape_multiple_characters_test_name;

--%test(Disabled Test with special characters in disable reason)
procedure special_characters_in_deisabled_reason;
procedure special_characters_in_disabled_reason;

--%test(Don't escape special characters in comment)
procedure special_characters_in_comment;

--%test(Include context as commented subtests)
procedure context_as_commented_subtests;

--%test(Suitepath as chopped subtests)
procedure suitepath_as_chopped_subtests;


--%afterall
procedure drop_help_tests;
Expand Down