[Development] QtTest for everybody

André Somers andre at familiesomers.nl
Tue Oct 8 09:56:59 CEST 2013


Op 7-10-2013 21:27, Thiago Macieira schreef:
> On segunda-feira, 7 de outubro de 2013 22:50:49, Dmitry Ashkadov wrote:
>> The topic about exceptions for slots and signals has inspirited me to
>> pay your attention to QtTest. QtTest is a good unit-test framework, but
>> it is focused to Qt. I think QtTest may be used for any project,
>> moreover it may be used as unit testing framework for project that
>> doesn't use Qt (is not based on Qt). But there is one big thing that is
>> not supported by QtTest. Yes, it is exceptions. I think it would be
>> better if QtTest has support of exceptions.  In QtTest test is
>> implemented using slots, so my proposal may require support of exception
>> for slots and signals. What do you think about exceptions in QtTest ?
> QtTest can test code with exceptions.
>
> Just make sure that your exceptions don't escape the test slots. That's a
> reasonable requirement.
>
Would it be reasonable/possible to record a FAIL on an exception instead?

André

-- 
You like Qt?
I am looking for collegues to join me at i-Optics!




More information about the Development mailing list