Running Unit Tests
Sven Krohlas
sven at asbest-online.de
Wed Aug 5 10:24:37 CEST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
HI,
> What if I want to run a regression test on something without normal
> amarok functions interfering? Take the playlist or collection-managers
> for instance. These will behave differently when devices are plugged
> in, services enabled, ...
- From an academic point of view this goes beyond the scope of unit testing.
Unit tests should test the smallest available components, so in a perfect
world they should be independent from each other.
One step upwards there are integrational tests which check several units
as a group to see if they work well correctly together. From what I know
those are usually still performed manually.
But if there is a way to run them automatically we should try that too, of
course. For example DirectoryLoader: I can tell it to load some files but
will never get info in return, so from the academic pov I can't do unit
testing. But the result is available in the Playlist, so checking there is
possible in an automated way.
But for that I think we have to look at it from case to case and I don't
know the classes you are worried about (yet). That sounds even a bit like
system testing, which is the next level after the integrational tests and
takes the system as a whole into account.
- --
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
iEYEARECAAYFAkp5QcQACgkQOOggGLjBlhY4xwCfUnceLWa44+9Y779Is79xWcMq
cQMAoJRuJ6Yfh4Fff9+e86jhoJQPY097
=4fzQ
-----END PGP SIGNATURE-----
More information about the Amarok-devel
mailing list