Scott Kostyshak wrote:

> On Mon, Oct 26, 2015 at 03:33:22PM +0000, Guenter Milde wrote:
>
>> I think we have to distinguish several test methods:
>> 
>> a) automatic export tests with lots of "real life" documents (manuals,
>>    templates, examples)
>> 
>> b) functional tests: import/export of a complete test document and
>> comparing
>>    it to the expected output
>>    
>> c) unit tests: test of certain features or sub-units.
>> 
>> Unit tests (c) are currently not implemented, AFAIK.

We have some, but they are not really documented. See the test 
subdirectories in src/ and below.

> There has been some little talk of implementing them but nothing in the
> end was done. From what I understand, it would be a huge change and it
> wasn't clear whether it was worth the effort and if everyone would use
> the tests.

Unit tests are almost always worth the effort. When I implement one, it does 
almost always find a bug right away. See also the check_lstrings failure 
Vincent reported and http://www.lyx.org/trac/ticket/9799. Having these bugs 
found by users is a much worse alternative.

The problem we have with unit tests is that we do not have a good 
infrastructure: It is too much overhead to add one. But once this is 
improved, it would be really worth it to add lots of unit tests.


Georg

Reply via email to