Difference between revisions of "KDE PIM/Akonadi/Testing"

Jump to: navigation, search
(Start to document the test infrastructure for Akonadi.)
(Added Category:PIM)
Line 61: Line 61:
Are there any? TODO
Are there any? TODO

Revision as of 15:03, 2 January 2009

Akonadi Test and Benchmark Infrastructure

Akonadi Testrunner

Igor's GSoC project, found in kdepimlibs/akonadi/tests/testrunner.

Documentation copied from kde-pim ML:

First you need create a configuration file in KStandDirs config resource type(try to use:kde4-config --path config , to find the path in my case the path is /usr/share/kde4/config) , the configuration file is a xml and look like:

<config> -- xml root
<kdehome>/home/igor/kde/installs/trunk </kdehome>  --path to your kde home in my case is /home/igor/kde/installs/trunk
<confighome> /home/igor/codes/kde/tests/test_akonadi/</confighome> --path to akonadi configuration, in my case /home/igor/codes/kde/tests/test_akonadi/
<datahome>/home/igor/codes/kde/tests/test_akonadi/data</datahome> --path to akonadi data
<resource>akonadi_ical_resource</resource> -- load the 
akonadi ical resource
<resource>akonadi_vcard_resource</resource> --load the akonadi vcard 
<item location="/path/to/file.vcf" collection="akonadi_vcard_resource_0"/> --load the file.vcf item to akonadi_vcard_resource_0 collection
</config> --finish configuration

After that you only needs to run the testrunner:


and it creates a shellscript file in your current directory called testenvironment.sh and you just need to run it.

%source testenvironment.sh

And right now you have a self contained Akonadi server. :>
If you have any kind of problem, send me a mail.

KNUT Test Data Resource

In kdepim/akonadi/resources, fully featured resource that operates on a single XML file. File format is decribed in knut.xsd and follows closely the internal structure of Akonadi. New files can be created in eg. Akonadiconsole by creating a resource and specifying a non-existing file.

Akonadi Scriptable Resource

Second part of Igor's GSoC project, currently in playground/pim/akonaditest.


Akonadi Benchmarker

In kdepimlibs/akonadi/test, part of Robert's thesis.



Akonadi Server

Usable without installation, run with ctest/make test as usual.


Better coverage than the above, but require special test data from kdesupport/akonadi/server/src/storage to be applied before every run (destroys all existing data, so be careful). Needs porting to the Akonadi Testrunner.


Are there any? TODO

Content is available under Creative Commons License SA 4.0 unless otherwise noted.