Use C++ testing framework

Kornel Benko kornel at lyx.org
Wed Jan 13 10:28:41 UTC 2021


Am Wed, 13 Jan 2021 11:53:25 +0200
schrieb Yuriy Skalko <yuriy.skalko at gmail.com>:

> On 16.12.2020 22:14, Yuriy Skalko wrote:
> > There were already several discussions here in 2013, 2015 and even in 
> > 1999 about using some unit testing framework, but without any tangible 
> > result. I think it is now time to change this :)
> > 
> > There are several widely used frameworks, I've chosen "doctest" 
> > (https://github.com/onqtam/doctest/). It is not the most popular, but is 
> > the fasest and has small size -- it consists of only one file. Also it 
> > is very convenient to use 
> > (https://github.com/onqtam/doctest/blob/master/doc/markdown/tutorial.md).
> > 
> > Now LyX has some simple hand-made unit testing in `tests` directories 
> > that is used to test a few base classes/functions. I've converted some 
> > of these tests to the new framework.
> > 
> > I only updated/added CMake files and these surely will require further 
> > improvements.
> > 
> > So, what is your opinion about this change? Comments are very appreciated.
> > 
> > 
> > Yuriy  
> 
> Ping...

I am reluctant ... have you seen, how many tests (in cmake) there already are?
Here it gives
	$ ctest -N | wc
   7605   22812  504591

OTOH, more tests cannot hurt.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210113/f4133808/attachment.asc>


More information about the lyx-devel mailing list