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

Wrong Format of utPLSQL Code Templates #113

Closed
PhilippSalvisberg opened this issue Oct 18, 2020 · 0 comments
Closed

Wrong Format of utPLSQL Code Templates #113

PhilippSalvisberg opened this issue Oct 18, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@PhilippSalvisberg
Copy link
Member

Since version 1.2.0 the generated code templates are wrongly formatted. I guess this happend during conversion from Xtend to Java.

ut_body

  • wrong indentation after first comment
  • missing line break before END END [procedure_name];
  • unnecessary line break before END test_[package_name];
CREATE OR REPLACE PACKAGE BODY test_[package_name] IS

   --
-- test
--
PROCEDURE [procedure_name] IS
   l_actual   INTEGER := 0;
   l_expected INTEGER := 1;
BEGIN
   -- populate actual
   -- ...

   -- populate expected
   -- ...

   -- assert
   ut.expect(l_actual).to_equal(l_expected);END [procedure_name];


END test_[package_name];
/

ut_body_proc

missing line break before END END [procedure_name];

--
-- test
--
PROCEDURE [procedure_name] IS
   l_actual   INTEGER := 0;
   l_expected INTEGER := 1;
BEGIN
   -- populate actual
   -- ...

   -- populate expected
   -- ...

   -- assert
   ut.expect(l_actual).to_equal(l_expected);END [procedure_name];

ut_spec

missing indentation of PROCEDURE

CREATE OR REPLACE PACKAGE test_[package_name] IS

   --%suite
   --%suitepath(alltests)

   --%test
PROCEDURE [procedure_name];

END test_[package_name];
/

ut_spec_proc

looks good.

--%test
PROCEDURE [procedure_name];
@PhilippSalvisberg PhilippSalvisberg self-assigned this Oct 18, 2020
@PhilippSalvisberg PhilippSalvisberg added this to the v1.2.1 milestone Oct 18, 2020
@PhilippSalvisberg PhilippSalvisberg changed the title Wrong Format of utPLSQL Code Templats Wrong Format of utPLSQL Code Templates Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant