[Kexi] Re: Building Unit tests for Kexi

Jaroslaw Staniek staniek at kde.org
Fri Dec 3 10:09:18 CET 2010


On 3 December 2010 09:43, Anu John <anuu.tjohn at gmail.com> wrote:
> Hi Kexi Team,
>
> Thanks for the wonderful product.I am facing couple of issues
> in executing unit tests for Kexi:
>
> 1.I built Kexi in Ubuntu following the instructions in the below link.
> http://wiki.koffice.org/index.php?title=Building/Building_KOffice
> I added -DKDE4_BUILD_TESTS=ON  to the cmake command
> so as to build the tests too.And then I did make test and make install.
> I got the following :
>
> anu-xavier at anu-xavier-laptop:~/Assmt5/Apps/koffice/build/kexi/tests$ make
> test
> Running tests...
> Start processing tests
> Test project /home/anu-xavier/Assmt5/Apps/koffice/build/kexi/tests
> No tests were found!!!
>
> Does this mean that there is no tests for Kexi or is it a wrong way?

There are no QTest-compliant tests in Kexi.  More like functional
tests are implemented in tests/newapi/ - think about them as example
programs that use KexiDB. Also for Kexi there are no tests other than
for the KexiDB module.

> If I am wrong can you please tell me where should I modify the procedure?
>
> 2.I found the following in the tests/newapi
>
>  Usage: kexidbtest [Qt-options] [KDE-options] [options] driver_name
> [db_name] [sql_statement]
>
> Can you please give me an example of using the above command ?

I want to post example run later today.

Tables creation test for sqlite database:
kexidbtest -t tables sqlite testdb.kexi

For mysql:
kexidbtest -t tables -u {user} -p {password} -h {hostname} mysql testdb.kexi

etc.

-- 
regards / pozdrawiam, Jaroslaw Staniek
 http://www.linkedin.com/in/jstaniek
 Kexi & KOffice (http://kexi-project.org, http://identi.ca/kexi,
http://koffice.org)
 KDE Software Development Platform on MS Windows (http://windows.kde.org)


More information about the Kexi mailing list