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
{{ message }}
Repository navigation
Package spec text longer than 4000 bytes breaks annotation parsing and suite building #1404
Describe the bug
If a test package has an annotation whose text is longer than 4000 bytes, the package's annotations can't be parsed. For example, a --%test(...) description that long causes the failure. The package is then not picked up as a suite, so it can't be listed or run.
Provide version info
utPLSQL v3.2.3
Information about client software
not applicable
To Reproduce
Create a test package with a --%test annotation whose description is longer than 4000 characters:
declare
l_desc varchar2(32767) := rpad('Test with description longer than 4000 characters ', 4100, '-');
begin
execute immediate
'create or replace package long_text_test_package as'|| chr(10) ||' --%suite(Suite with long annotation text)'|| chr(10) ||' --%test('|| l_desc ||')'|| chr(10) ||' procedure long_description_test;'|| chr(10) ||'end;';
end;
/
Create the package body, then run exec ut.run('long_text_test_package');
Expected behavior
Annotation parsing works without problems and long lines do not prevent the testsuite building.
Activity