Hi All,
I have startet to publish some Helper -Tools to make the transition from Delphi to Elements easier. I’m in the cleanup phase, but before I spend to much time
I would like to know about the interest from the community here.
The most work is done around the Delphi-Ast Project.
What is planed so far:
- Port Delphi-Ast to Elements (Done and published GitHub)
- Build a Tool to show up Problems in Delphi Sources before porting to Elements. (More or less done needs some polish)
- Build a Tool to Setup Tests for all the Classes and Public Methods in the Delphi Sources. (partly done including some Helper Classes to use DUnitX-Tests in Elements)
Reason why I do this work:
I’m porting a large Delphi Project to Elements. And as a Developer,I wan’t as much as possible done an automatic way.
The second reason: This way I’m learning a lot about Elements, that will be helpful in the future for me.
to Show parts of a result from the actual Problems-Checker:
cad.Types.FastGeoCalc.pas
has With Clauses
has Initialization
has Finalizations
has Public Vars in Interface needs {GLOBALS ON}
has Public Methods in Interface needs {GLOBALS ON}
has Variant record Type
And my TestClasses are defined this way:
Unit ElementTestBase;
interface
uses
{$IF ELEMENTS}
RemObjects.Elements.EUnit,
{$ELSE}
Dunitx.ElementsHelper,
{$ENDIF}
DUnitX.TestFramework;
type
[TestFixture]
ElementTest = class(TTest)
private
protected
public
[Test]
Procedure FirstTest;
end;
implementation
Procedure ElementTest.FirstTest;
begin
Assert.IsTrue(true);
end;
{$IF NOT ELEMENTS}
initialization
TDUnitX.RegisterTestFixture(ElementTest);
{$ENDIF}
end.