[Development] QtTest for everybody
Thiago Macieira
thiago.macieira at intel.com
Mon Oct 7 21:27:30 CEST 2013
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.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131007/8b763599/attachment.sig>
More information about the Development
mailing list