[Development] Duplicated test data tags

EXT Mitch Curtis mitch.curtis at qt.io
Fri Oct 14 03:40:35 CEST 2022


> -----Original Message-----
> From: Development <development-bounces at qt-project.org> On Behalf Of
> Milian Wolff
> Sent: Friday, 14 October 2022 3:00 AM
> To: Development at qt-project.org
> Subject: Re: [Development] Duplicated test data tags
> 
[...] 
> I have many times accidentally written bogus code that duplicated the tags.
> Getting a warning is useful, so thanks for working on that!
> 
> But we won't easily spot these in the thousands of lines of outputs a large
> test suite is generating. At the very least I would suggest something akin to
> QT_FATAL_WARNINGS that can be set to more easily spot faulty client code.

QTest::failOnWarning (introduced in 6.3) could also be used by tests to make that warning fail the test:

https://doc.qt.io/qt-6/qtest.html#failOnWarning

> Cheers
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de


More information about the Development mailing list