[ Home Page ] [ Eiffel Archive ] [ Eiffel Classes and Clusters ]

Arc de Triomphe clipart (2486 bytes)

Simple Test Framework


Written by Thomas Beale.

ef_test.zip (18,738 bytes) - source code


SIMPLE TEST FRAMEWORK TO SUPPORT IEEE-style TESTING

Philosophy

The testing philosophy used is based on that described in the IEEE Standard for Software Test Documentation, IEEE 829-1983. Briefly this is as follows:

Design

This simple package supports the above concepts as follows:

Example Distribution

The example provided should compile normally, requiring only the BASE libraries. Test cases included are contrived and simple, due to the fact that real examples of use involve the copyright code and systems of various organisations, not available for distribution, or else, more esoteric libraries such as Eiffel/Matisse.

Directory/Cluster Structure

One of the advantages of using this framework is that it encourages some discipline in testing, namely:

To this end, a convenient directory structure I often use on projects is:

some_root_dir/
	app_1/
	app_2/
	app_3/
	library/
		cluster_a/
			test/
		cluster_b/
			test/
		cluster_c/
			test/
	test_app_A/
	test_app_B/

Here, the test_app_Xs are seen as ordinary deliverable applications; each cluster_x has its own set of test cases, test suite and test environment in cluster_x/test (i.e. the test cases etc travel with the relevant cluster).


[ Home Page ] [ Eiffel Archive ] [ Eiffel Classes and Clusters ]