Within a Qt Unit-test, how can the program retrieve the name of the test being run?
Code looks something like this:
#include <QtTest>
class MyTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void initTestCase()
{
}
void testCase1()
{
}
void cleanupTestCase()
{
// Want to print "finished testCase1" here
}
};
QTEST_APPLESS_MAIN(MyTest)
e.g. can it find out the name of the signal/slot that triggered the test?