You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdenetwork/kopete/libkopete/tests
Timothy Pearson c48e769eb2
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
12 years ago
..
emoticon-parser-testcases Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
link-parser-testcases Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
mock Rename KInstance and KAboutData to avoid conflicts with KDE4 12 years ago
Makefile.am Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
README Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
create_test.rb Fix inadvertent tq changes. 12 years ago
kopetecontactlist_test.cpp Rename old tq methods that no longer need a unique name 13 years ago
kopetecontactlist_test.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
kopeteemoticontest.cpp Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 12 years ago
kopeteemoticontest.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
kopetemessage.xsd Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
kopetemessage_test.cpp Rename KInstance and KAboutData to avoid conflicts with KDE4 12 years ago
kopetemessage_test.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
kopetepasswordtest_program.cpp Rename KInstance and KAboutData to avoid conflicts with KDE4 12 years ago
kopetepasswordtest_program.h Remove spurious TQ_OBJECT instances 13 years ago
kopetepropertiestest.cpp Rename old tq methods that no longer need a unique name 13 years ago
kopetepropertiestest.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
kopetewallettest_program.cpp Rename KInstance and KAboutData to avoid conflicts with KDE4 12 years ago
kopetewallettest_program.h Remove spurious TQ_OBJECT instances 13 years ago
template_test.cpp Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
template_test.h Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago

README

LibKopete Unit Tests
====================

KopeteSuite:
--------------
Emoticon Test
Link Test
Property Test

Test Programs:
--------------
Password Test Program
Wallet Test Program


HOWTO Run
=========

You can use the console or the GUI version:

 $ make guicheck
 $ make check

The 'silent' switch in make is useful to reduce output:
 
 $ make check -s


Tricks
======

Accessing private data?, you should not. We will kill you.
If it is really required, do something like:

 #define private public
 #include "kopetemessage.h"
 #undef private

Add a new test quickly:

 $ ./create_test.rb Kopete::ContactList
 Creating test for class Kopete::ContactList
 kopetecontactlist_test.h and kopetecontactlist_test.cpp writen.
 Please add the following to Makefile.am:
 kunittest_kopetecontactlist_test_la_SOURCES = kopetecontactlist_test.cpp
 kunittest_kopetecontactlist_test_la_LIBADD = -lkunittest ../mock/libkopete_mock.la
 kunittest_kopetecontactlist_test_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)