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
Darrell Anderson 4bc8816c94
Add end-of-file newlines.
11 years ago
..
emoticon-parser-testcases
link-parser-testcases
mock Add end-of-file newlines. 11 years ago
Makefile.am
README
create_test.rb
kopetecontactlist_test.cpp Additional k => tde renaming and fixes 11 years ago
kopetecontactlist_test.h
kopeteemoticontest.cpp Add end-of-file newlines. 11 years ago
kopeteemoticontest.h
kopetemessage.xsd
kopetemessage_test.cpp Additional k => tde renaming and fixes 11 years ago
kopetemessage_test.h
kopetepasswordtest_program.cpp
kopetepasswordtest_program.h
kopetepropertiestest.cpp Add end-of-file newlines. 11 years ago
kopetepropertiestest.h
kopetewallettest_program.cpp
kopetewallettest_program.h
template_test.cpp Additional k => tde renaming and fixes 11 years ago
template_test.h

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:
 tdeunittest_kopetecontactlist_test_la_SOURCES = kopetecontactlist_test.cpp
 tdeunittest_kopetecontactlist_test_la_LIBADD = -ltdeunittest ../mock/libkopete_mock.la
 tdeunittest_kopetecontactlist_test_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)