summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/tests/README
blob: c8ee619b5923437d35ca3a60adffd8dc3a686ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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)