On 6/3/06, Jilani Khaldi <[EMAIL PROTECTED]> wrote:
> Learn to code with UnitTests (process is called Test Driven
> Development).

Never used. How does this work? I found only a unit called
"UnitTests.pp" and nothing else.

Use an xUnit testing framework while coding.  Free Pascal comes with
fpcUnit.  Under Delphi people normally use DUnit.  Under Java they use
JUnit, etc...

Regarding TDD (Test Driven Development) look at the following websites:
In short - You write a test, Write the code, Run the tests, Refactor.
Then repeat the whole process...  The first 3 steps should be
completed in under a minute.  As I said, it is very different to
traditional programming style, but once mastered, you can't think of
programming any other way.

http://en.wikipedia.org/wiki/Test_driven_development
http://www.testdriven.com
http://www.agiledata.org/essays/tdd.html

Regards,
 - Graeme -
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to