Skip to content

Wrong Format of utPLSQL Code Templates #113

Description

@PhilippSalvisberg

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-- ...-- assertut.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-- ...-- assertut.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];

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions