Running Unit Tests

Bart Cerneels bart.cerneels at kde.org
Wed Aug 5 09:55:51 CEST 2009


On Wed, Aug 5, 2009 at 09:45, Sven Krohlas<sven at asbest-online.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
>> Might it be possible to make tests a separate binary that links to the
>> libraries under test and performs the necessary initialization just
>> like amarok proper does?
>> It seems kind of overkill and unproductive to have to run the whole
>> app to test something like PlaylistFileSupport.
>
> As eean already wrote: I tried that. Linking those binaries was a pita
> and depending on the class a lot of Amarok had to be loaded anyway.
>
> Running the tests currently takes << 1 second here (plus Amarok startup
> time) and I don't think it will be so much more in the future, as the
> tests are really fast.

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, ...


More information about the Amarok-devel mailing list