Skip to content

Package spec text longer than 4000 bytes breaks annotation parsing and suite building #1404

Backlog

Description

@jgebal

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

  1. added theissue type on Dec 2, 2026
  2. removed theissue type on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions