From amarok-devel Wed Aug 05 08:50:40 2009 From: Sven Krohlas Date: Wed, 05 Aug 2009 08:50:40 +0000 To: amarok-devel Subject: Re: Running Unit Tests Message-Id: <4A7947E0.6010201 () asbest-online ! de> X-MARC-Message: https://marc.info/?l=amarok-devel&m=124946221816140 -----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----- _______________________________________________ Amarok-devel mailing list Amarok-devel@kde.org https://mail.kde.org/mailman/listinfo/amarok-devel