In this last week new test classes were added to the framework, namely tests for:
- Meta::M3UPlaylist
- Meta::XSPFPlaylist
- PlaylistFileProvider
- SqlUserPlaylistProvider
- TimecodeTrackProvider
Also the tests for DirectoryLoader finally work. The solution was to leave the usual design of tests behind in this case and start testing with QTest::qExec() not in the constructor but in a special slot that gets connected to the loaders finished() signal. So this is now a good template for tests that test actions taking part in other threads. Also some more test data has been added and older tests have been polished a bit.
So in the end we have a fast test framework with currently 18 test classes. Adding more tests is not hard, a
guide to using and writing Amarok unit tests has just been added our wiki. Tell me if anything is unclear there.