Review Request: Add an unit test for Plasma::ConfigLoader

Martin Blumenstingl darklight.xdarklight at googlemail.com
Mon Sep 13 19:26:37 CEST 2010



> On 2010-09-12 21:47:38, Martin Blumenstingl wrote:
> > /trunk/KDE/kdelibs/plasma/tests/configloadertest.cpp, line 172
> > <http://svn.reviewboard.kde.org/r/5329/diff/1/?file=35739#file35739line172>
> >
> >     I am not sure why, but "actual" is always empty.
> >     I can't figure out the reason, because building the list is OK in ConfigLoader.
> >     
> >     I can access the list when I use it in a javascript plasmoid - so there may be something wrong with the code in my test.

after a discussion with Aaron: using QList<qint32> is wrong here.
ItemIntList is a QList<int> -> that's why casting fails.


- Martin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5329/#review7566
-----------------------------------------------------------


On 2010-09-12 21:45:48, Martin Blumenstingl wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/5329/
> -----------------------------------------------------------
> 
> (Updated 2010-09-12 21:45:48)
> 
> 
> Review request for Plasma.
> 
> 
> Summary
> -------
> 
> Currently I'm changing some of the code in Plasma::ConfigLoader.
> I want to make sure that I don't break that much ;)
> 
> Thus I wrote a unit test for the config loader.
> Currently all it does it testing if the config loader can parse the default-values correctly.
> One test for each (data-)"type" which ConfigLoader can handle.
> 
> Unfortunately ConfigLoaderTest::intListDefaultValue does not work yet (everything else works)
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/plasma/tests/configloadertest.xml PRE-CREATION 
>   /trunk/KDE/kdelibs/plasma/tests/CMakeLists.txt 1174512 
>   /trunk/KDE/kdelibs/plasma/tests/configloadertest.h PRE-CREATION 
>   /trunk/KDE/kdelibs/plasma/tests/configloadertest.cpp PRE-CREATION 
> 
> Diff: http://svn.reviewboard.kde.org/r/5329/diff
> 
> 
> Testing
> -------
> 
> I ran the tests on my box.
> 20/21 were successful.
> 
> The only one failing is: ConfigLoaderTest::intListDefaultValue
> (and I need some help there)
> 
> 
> Thanks,
> 
> Martin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100913/904eae9a/attachment.htm 


More information about the Plasma-devel mailing list