Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Data Driven Test row name
diredko last edited by diredko
I'm trying to implement several data driven tests for my Qt Application and I need to get data row name (the string passed as an argument to newRow function) but it seems to be trickier than just doing QFETCH(QString, name).
I have looked through Qt documentation but couldn't have found anything that could help.
Would someone please help me understand how name of data row can be fetched in test function?
p.s. I'm using Qt 5.6
Out of curiosity, why do you need that information ?
diredko last edited by
@SGaist I need to implement output messages on test failure with specific format
Did you saw that you can already get the output of QTest base unit test in different formats ?
Paul Colby last edited by
I hope that helps :)
Nice one ! I've missed that function. Thanks !