Add unittest

wilder-work
Montel Laurent 11 years ago
parent 2529c1a3da
commit 5732c99c1e
  1. 2
      mailmerge/tests/CMakeLists.txt
  2. 31
      mailmerge/tests/mailmergejobtest.cpp
  3. 32
      mailmerge/tests/mailmergejobtest.h

@ -41,4 +41,4 @@ kmail_mailmerge(addressbookwidgettest.cpp "../widgets/selectattachmentdialog.cpp
kmail_mailmerge(csvwidgettest.cpp "../widgets/csvwidget.cpp" "")
kmail_mailmerge(mailmergedialogtest.cpp "../mailmergedialog.cpp;../widgets/mailmergewidget.cpp;../widgets/attachmentlistwidget.cpp;../widgets/csvwidget.cpp;../widgets/addressbookwidget.cpp;../widgets/selectattachmentdialog.cpp" "pimcommon")
kmail_mailmerge(selectattachmentdialogtest.cpp "../widgets/selectattachmentdialog.cpp" "")
kmail_mailmerge(mailmergejobtest.cpp "../job/mailmergejob.cpp" "")

@ -0,0 +1,31 @@
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "mailmergejobtest.h"
#include <qtest_kde.h>
MailMergeJobTest::MailMergeJobTest(QObject *parent)
: QObject(parent)
{
}
MailMergeJobTest::~MailMergeJobTest()
{
}
QTEST_KDEMAIN(MailMergeJobTest, NoGUI)

@ -0,0 +1,32 @@
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MAILMERGEJOBTEST_H
#define MAILMERGEJOBTEST_H
#include <QObject>
class MailMergeJobTest : public QObject
{
Q_OBJECT
public:
explicit MailMergeJobTest(QObject *parent = 0);
~MailMergeJobTest();
};
#endif // MAILMERGEJOBTEST_H
Loading…
Cancel
Save