[Nepomuk] Review Request: Nepomuk Test Library and tests

Vishesh Handa me at vhanda.in
Thu Jul 19 14:23:57 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105597/
-----------------------------------------------------------

(Updated July 19, 2012, 2:23 p.m.)


Review request for Nepomuk and Sebastian Trueg.


Changes
-------

Do not install any files. Use Cmake variables which point to the build directories.


Description
-------

This is the Nepomuk Test Framework which I had described months ago over here - http://vhanda.in/blog/2012/03/nepomuk-test-framework/

It is currently in the testLibrary branch in nepomuk-core. This is a diff of testLibrary against KDE/4.9.

The testlib creates mock kde and dbus sessions and then starts Nepomuk. It waits till the nepomuk query service has been started and it then runs the tests. Once the tests have run, it shuts down the mock kde sessions, and destroys the temporary folder in which it was created.

The patch also contains very detailed tests for the Resource class. Most of the tests fail :) It seems like I have a lot of work to do.

I would like to merge this into KDE/4.9. I hope no one has any objections.


Diffs (updated)
-----

  CMakeLists.txt 4d5ae3f 
  autotests/CMakeLists.txt PRE-CREATION 
  autotests/README PRE-CREATION 
  autotests/lib/CMakeLists.txt PRE-CREATION 
  autotests/lib/NepomukTestLibMacros.cmake.in PRE-CREATION 
  autotests/lib/nepomukserverrc.in PRE-CREATION 
  autotests/lib/nepomuktest_export.h PRE-CREATION 
  autotests/lib/testbase.h PRE-CREATION 
  autotests/lib/testbase.cpp PRE-CREATION 
  autotests/lib/tools/CMakeLists.txt PRE-CREATION 
  autotests/lib/tools/runNepomukTest.sh.in PRE-CREATION 
  autotests/lib/tools/run_in_new_dbus_session.sh PRE-CREATION 
  autotests/lib/tools/with-nepomuk-sandbox.sh.in PRE-CREATION 
  autotests/test/CMakeLists.txt PRE-CREATION 
  autotests/test/resourcetests.h PRE-CREATION 
  autotests/test/resourcetests.cpp PRE-CREATION 
  services/filewatch/nepomukfilewatch.desktop 7e5a7bb 

Diff: http://git.reviewboard.kde.org/r/105597/diff/


Testing
-------

Yes. The tests have been tested.

If you want to run the tests please run them via 'ctest -VV'. Do not run the test executables manually. This would not result in the test environment being setup, and a new virtuoso database would be not be created. This would result in ALL your Nepomuk data being deleted at the end of the test.


Thanks,

Vishesh Handa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20120719/7d03ee01/attachment.html>


More information about the Nepomuk mailing list