[Casa-framework] test programs

jaeger at cpsc.ucalgary.ca jaeger at cpsc.ucalgary.ca
Fri Dec 1 19:18:59 EST 2006


> Greetings,
>
> I'm not sure we have any hard and fast rules about it but I would
> like to offer up the following suggestion for where to put test
> programs and scripts.
>
> If your test program is a C++ program, put it in implement/Module/
> test, i.e. say you have a new calibration test program called
> tCalTestIt.cc it should be checked into implement/
> MeasurementComponents/test.  Note the program starts with a lower
> case t.

This part sounds fine

> If your test program requires displaying a GUI, can we have them
> recognize they not being run in a gui environment and just return an
> UNTESTED?

NOt sure what you mean by this.  Is the GUI external to casapy or
internal?

> Scripts, I suggest test scripts should go into scripts/test.  So that
> spiffy python test script you wrote call tSpiffyTest.py should find
> it's way into xmlcasa/scripts/test/tSpiffyTest.py.

There may be quite a number of python scripts.  I suspect I will have
quite a number, potentially one for each msplot function.  It would be
hard sorting through xmlcasa/scripts/test and figuring out which one
is for what tool.

I think xmlcasa/implement/Module/test might be a better place

Shannon




More information about the Casa-framework mailing list