* c. <[email protected]> [2012-03-13 23:09]:
>
> On 13 Mar 2012, at 22:57, Luca Favatella wrote:
>
> > I am interested in the best practices for exposing the unit test suite
> > as I am currently polishing the ga package [0].
> > The control package defines a test_control.m [1] script (without
> > output arguments) in order to run all unit tests.
>
> thehe is no "best practice" set yet ...
> what about the following:
>
> create a file named <pkg_m>/<pkg_name>.m
> and put all tests in test blocks inside it.
>
> then it would be possible to do
>
> test <pkg_name>
>
> and run the whole test suite.
With this scheme, there would be name clashes with some packages like
Plot and Time. It would be better to make a convention for the name of
the file containing the test suite, say <pkg_m>/__test_<pkg_name>.m, and
let it be launched by:
pkg test <pkg_name>
Rafael
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev