Suggestions for any APLTree sub-project

Definitions

APLTree is an Open Source project. All sub-project must conform to this and therefore contain a conforming note. See AplTreeLicensing for details.

Suggestions

How to implement test cases

Generally, there are two different ways one can implement test cases: Either in a workspace or by running a script. Both approaches have their pros and cons. Choose what is appropriate for you.

Workspace approach

Note that following these suggestions makes it much easier for others to get familiar with a sub-project, and to fiddle with them. This is not because these suggestion are so particularly good, it is because if everything follows the same route, one knows where to go. It is also the only way to perform tests automatically (batch mode). Note that these are excellent reasons to stick with these rules.

Batch mode

There is an application available that executes all test cases of all members of the APLTree project automatically. The vector 1 0 1 is then passed as the right argument to RunAll . In order to make that work every test case must accept both a left and a right argument. Therefore, the header signature of a test case function must always look like this example:

      R←stop Test_0001 batchFlag

Scripted approach

(to be developed....)

AplTreeSuggestions (last edited 2011-06-02 06:10:47 by KaiJaeger)