[Qt-creator] Enhancement Request - File|New Unit Test
Ladnar, Marc
Marc.Ladnar at ksab.kroschu.com
Thu Jul 9 13:57:48 CEST 2009
I would like to have similar functionallity, maybe providing Templates
for new classes and forms.
-----Ursprüngliche Nachricht-----
Von: Robert Caldecott [mailto:robert.caldecott at gmail.com]
Gesendet: Donnerstag, 9. Juli 2009 13:01
An: qt-creator at trolltech.com
Betreff: [Qt-creator] Enhancement Request - File|New Unit Test
I am a big fan of unit testing and am always creating new classes that
look like this:
// footests.h
#ifndef FOOTESTS_H
#define FOOTESTS_H
#include <QTest>
class FooTests : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void cleanupTestCase();
};
#endif // FOOTESTS_H
// footests.cpp
#include "footests.h"
void FooTests::initTestCase()
{
}
void FooTests::cleanupTestCase()
{
}
This is quite laborious and as I'm sure most of us agree that unit
testing is a good thing, how about an option in File|New for creating a
unit test class similar to the one above?
_______________________________________________
Qt-creator mailing list
Qt-creator at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator
More information about the Qt-creator-old
mailing list