#1 2012-10-16 13:52:49

h.hasenack
Member
From: Nijmegen, Netherlands
Registered: 2012-08-01
Posts: 173
Website

Testing code in between production code

Hi Ab

We (Bascy and I) have noticed that your testing code is in the same units as the production code. Is this a rational choice, is it like this because it is convenient for you, or just because it "grew into it" over time?

I would advise separating the production code from the testing code (No surprise here wink), and provide the "testing framework" completely separate, preferably in a separate UnitTest subfolder.

Which does not take away my respect for the way you maintain and write your code. I am still very impressed.

Regards

Hans

Last edited by h.hasenack (2012-10-16 13:53:12)

Offline

#2 2012-10-17 11:31:39

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Testing code in between production code

If you speak about test codes included in e.g. SynCommons.pas or SQlite3.pas unit, you are right.
It could need some refactoring. Even if all this code won't be compiled in the final .exe, due to Delphi smart linking.

Should be better with http://synopse.info/fossil/info/eaf5da8348

Offline

#3 2012-10-17 13:52:41

h.hasenack
Member
From: Nijmegen, Netherlands
Registered: 2012-08-01
Posts: 173
Website

Re: Testing code in between production code

Thx

Offline

Board footer

Powered by FluxBB