[Development] Duplicated test data tags

EXT Mitch Curtis mitch.curtis at qt.io
Mon Oct 17 02:59:03 CEST 2022


> -----Original Message-----
> From: Edward Welbourne <edward.welbourne at qt.io>
> Sent: Friday, 14 October 2022 4:56 PM
> To: Milian Wolff <mail at milianw.de>; EXT Mitch Curtis <mitch.curtis at qt.io>
> Cc: Development at qt-project.org
> Subject: Re: [Development] Duplicated test data tags
[...]
> Mitch Curtis (14 October 2022 03:40) replied:
> > 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
> 
> True enough; but you would need to add that to the start of your _data()
> function; I think a global setting is more in line with what's needed.

So even init() would be too late? I would have thought that would run before the data function.

> Fortunately we do have QT_FATAL_WARNINGS; I had forgotten about that.
> 
> So the question is: does it suffice to encourage developers to test with that
> enabled, or do we need something more specific to the particular issue of tag
> and column names in _data() functions ?
> 
> 	Eddy.


More information about the Development mailing list