Running Unit Tests

Sven Krohlas sven at asbest-online.de
Wed Aug 5 10:50:40 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

> I think I didn't make myself clear enough. I want to do unit testing
> of PlaylistManager: adding a provider with certain playlists. Query PM
> later and see if those playlists are there, trying to delete from a
> non-writable provider, etc.
> 
> But since PlaylistManager is being used while initializing it will
> never be in a known state when tested within amarok. So we can not do
> unit testing except external to amarok-app.

Ok, then in that case it might make sense to go for an external test
app. Basically those are the same as the tests we have now, but you have
to add http://doc.trolltech.com/4.4/qtest.html#QTEST_MAIN to the test,
create the CMakeLists.txt and build with KDE4_BUILD_TESTS=ON. I think
that's it already, if I haven't forgotten anything. :)
- --
Darkerradio Free Music Charts:
http://www.darkerradio.com/news/free-music-charts-juli-2009/
Klarmachen zum Ändern! -> http://www.piratenpartei.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkp5R+AACgkQOOggGLjBlhYsbwCgi+2XKhcsTioCNUtDNU9xUbjY
ZTAAn2RdmwtJ9eejKuBV+dmt7SzTEVLN
=wRgU
-----END PGP SIGNATURE-----


More information about the Amarok-devel mailing list