You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an utPLSQL output contains a CDATA section, then the ut_realtime_reporter produces an invalid XML message. Such a message cannot be processed by consumers such as the SQL Developer extension.
CREATE OR REPLACE PACKAGE junit_utplsql_test2_pkg is
--%suite(JUnit testing)--%suitepath(b)\n--%test(test XML with nested CDATA)
PROCEDURE test_nested_cdata;
END;
/
CREATE OR REPLACE PACKAGE BODY junit_utplsql_test2_pkg IS
PROCEDURE test_nested_cdata IS
BEGINdbms_output.put_line('nested cdata block: <![CDATA[...]]>, to be handled.');
ut.expect(1).to_equal(1);
END;
END;
/
WITH
FUNCTION reporter return ut_realtime_reporter IS
l_reporter ut_realtime_reporter := ut_realtime_reporter();
BEGINl_reporter.set_reporter_id('12345');
RETURN l_reporter;
END;
SELECTtextFROM TABLE(reporter().get_lines())
WHERE item_type ='post-test'/
This is not a valid XML document. You can go to https://www.xmlvalidation.com/ and paste the result there for details. The reason is the nested CDATA section.
Expected behavior
Produce a valid XML document. Always.
The text was updated successfully, but these errors were encountered:
Describe the bug
When an utPLSQL output contains a CDATA section, then the
ut_realtime_reporter
produces an invalid XML message. Such a message cannot be processed by consumers such as the SQL Developer extension.This is related to utPLSQL/utPLSQL-SQLDeveloper#107.
Provide version info
To Reproduce
1. Create Test Package
2. Run Test
3. Consume wrong XML message
This produces the following output:
This is not a valid XML document. You can go to https://www.xmlvalidation.com/ and paste the result there for details. The reason is the nested CDATA section.
Expected behavior
Produce a valid XML document. Always.
The text was updated successfully, but these errors were encountered: