Use C++ testing framework

Kornel Benko kornel at lyx.org
Thu Feb 11 10:06:44 UTC 2021


Am Thu, 11 Feb 2021 11:35:10 +0200
schrieb Yuriy Skalko <yuriy.skalko at gmail.com>:

> > I'm all for focusing on 2.4.0 release. So I'll not push yet my commits into newly
> > created branch features/unit-test-adoption.  
> 
> 
> After some time-out I've pushed my work on unit testing into 
> unit-test-adoption branch in features repository. So if you have some 
> free time and are interested, please try it.
> 
> Here are some notes:
> 
> * Now it supports CMake only
> * I've added a short section documenting this in Development manual
> * There are several changes that makes testing easier/possible:
>      - (Inset...) made several virtual methods public (as in base class 
> Inset) that wrongly were private in several derived classes
>      - (lyxfind) made public findOne function to get rid of messagebox 
> displaying
>      - (ExternalTransforms) throw an exception instead of direct output 
> to lyxerr stream to get clean console output when running tests
> 
> 
> Yuriy

Compiles fine.
Test is very fast (no options used)

Is that the expected output?
...............
[doctest] doctest version is "2.4.5"
[doctest] run with "--help" for options
===============================================================================
[doctest] test cases:  14 |  14 passed | 0 failed | 0 skipped
[doctest] assertions: 108 | 108 passed | 0 failed |
[doctest] Status: SUCCESS!
....................

	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/20210211/7cf06e39/attachment.asc>


More information about the lyx-devel mailing list