These classes are then registered in a test suite registry, and can be run. It does this by providing a few base classes (testcases) of which the tester must make a descendent, and which should include test code for the routines to be tested. Basically, the JUnit test framework provides a controlled environment to perform tests of software routines. This has culminated in a series of test frameworks, similar to the original JUnit test framework. 1 Introduction Lots of people are firm believers in the concept of writing test code for classes or routines, as part of the development effort. Copyright on this text is owned by Michaël Van Canneyt and Toolbox magazine. Remark: This article was translated to German and published in issue 2/2005 of the Toolbox Magazine (). Free Pascal and Lazarus could not stay behind, so FPCUnit was implemented. Test your Lazarus/FPC code with FPCUnit Michaël Van Canneyt OctoAbstract Testing frameworks for your code are popular: Java has JUnit, Delphi has Dunit and NUnit.
0 Comments
Leave a Reply. |