> -----Original Message----- > From: Edward Welbourne <edward.welbou...@qt.io> > Sent: Friday, 14 October 2022 4:56 PM > To: Milian Wolff <m...@milianw.de>; EXT Mitch Curtis <mitch.cur...@qt.io> > Cc: Development@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. _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development