Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing line break after suite annotation in generator skeleton template #157

Closed
PhilippSalvisberg opened this issue Jul 23, 2022 · 0 comments · Fixed by #158
Closed

Missing line break after suite annotation in generator skeleton template #157

PhilippSalvisberg opened this issue Jul 23, 2022 · 0 comments · Fixed by #158
Assignees
Labels
Milestone

Comments

@PhilippSalvisberg
Copy link
Member

This is the PL/SQL package to test:

create or replace package etl is
   procedure refresh_deptsal;
end etl;
/

When generating a utPLSQL test via context menu or via oddgen the generated code looks like this:

create or replace package test_etl is

   --%suite(test_etl)
   --%test
   procedure refresh_deptsal;

end test_etl;
/

create or replace package body test_etl is

   procedure refresh_deptsal is
      l_actual   integer := 0;
      l_expected integer := 1;
   begin
      ut.expect(l_actual).to_equal(l_expected);
   end refresh_deptsal;

end test_etl;
/

Generator settings look like this:

image

Since there is no empty line between --%suite(test_etl) and --%test the test is not found by the utPLSQL framework.

This run:

set serveroutput on size unlimited
execute ut.run;

produced this result:

Finished in 0 seconds
0 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)
 


PL/SQL procedure successfully completed.

Maybe this is related to #156.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant