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
Added test for including context when it only contains skipped tests
  • Loading branch information
WayneNani committed Mar 17, 2026
commit 18af6b01068fd896104c1cc5889c452dc13122cb
28 changes: 28 additions & 0 deletions test/ut3_user/reporters/test_tap_reporter.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ create or replace package body test_tap_reporter as

--%test(Escaped Comments)
procedure escaped_comments;

--%context(Some context)

--%test(Another disabled test)
--%disabled
procedure another_disabled_test;

--%endcontext
end test_tap_escaping;
]';

Expand All @@ -42,6 +50,11 @@ create or replace package body test_tap_reporter as
dbms_output.put_line('This \ and # should not be escaped, and this not as well!!!');
ut.expect(1).to_equal(1);
end escaped_comments;

procedure another_disabled_test as
begin
ut.expect(10).to_equal(1);
end;
end test_tap_escaping;
]';

Expand Down Expand Up @@ -217,6 +230,21 @@ create or replace package body test_tap_reporter as
end suitepath_as_chopped_subtests;


procedure include_context_with_skipped_tests as
l_output_data ut3_develop.ut_varchar2_list;
l_expected varchar2(32767);
begin
l_expected := q'[%# Subtest: Some context%]';

select *
bulk collect into l_output_data
from table(ut3_develop.ut.run('test_tap_escaping.another_disabled_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 include_context_with_skipped_tests;


procedure drop_help_tests as
pragma autonomous_transaction;
begin
Expand Down
3 changes: 3 additions & 0 deletions test/ut3_user/reporters/test_tap_reporter.pks
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ create or replace package test_tap_reporter as
--%test(Suitepath as chopped subtests)
procedure suitepath_as_chopped_subtests;

--%test(Include context with only skipped tests in output)
procedure include_context_with_skipped_tests;


--%afterall
procedure drop_help_tests;
Expand Down
Loading