octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proposal for built in tests.


From: John W. Eaton
Subject: Proposal for built in tests.
Date: Tue, 23 Jun 2009 13:51:09 -0400

On 21-Jun-2009, Robert T. Short wrote:

| In a recent email exchange John suggested that it would be nice for 
| someone to move tests from the test directory to the files that the 
| tests are being tested.
| 
| I have started to do this, but would like to make a proposal.  There are 
| pros and cons, so it isn't clear that my approach is any better but it 
| does simplify some aspects of creating tests.
| 
| The problem:
| 
| Including tests in .cc files will cause those files and everything that 
| depends on them to be made.  This can take a really long time.
| 
| The proposal.
| 
| For .cc (and other compiled files), why not create a file with the same 
| base but with a .test extension?  Thus ov-class.cc will have a file 
| called ov-class.test that contains the tests.

Moving the tests to separate files sort of defeats the purpose of
having the tests in the same file as the code, which was to make it
easier and more likely that the tests would be edited when the code
changes.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]