[Kmymoney-devel] KMyMoney - CSV Importer
allan
aganderson at ukonline.co.uk
Fri Jun 25 14:29:47 CEST 2010
On 25/06/10 13:21, Fernando Vilas wrote:
> On Friday, June 25, 2010 02:34:30 Cristian Oneţ wrote:
>> On Fri, Jun 25, 2010 at 2:21 AM, allan <aganderson at ukonline.co.uk> wrote:
>> [snip]
>>
> [..]
>>> I mentioned this afternoon that the unit testing had been overtaken by
>>> events since I sent it to you, it being CPPUNIT based. I now have the
>>> QTest version working in isolation, and will the integrate it into the
>>> plugin version and let you have that as soon as poss.
>>
>> Then, after I clean up the plugin code, I'll commit it to SVN. I'm not
>> sure how will we handle the unit tests though since the tests have to
>> be standalone in the plugin (not built with the kmymoney tests) but I
>> think QTest can handle that.
>>
>
> It is actually easier to do that with QTest than it was with CPPUNIT. In the
> CMakeLists.txt for the plugin, add a section that checks for KDE4_BUILD_TESTS,
> and put the test inside that block. If the plugin is enabled and built, it
> will build and run the test.
>
Thanks Fernando
Yes, I find QTest much easier to understand, and quickly had it running.
But, only as a standalone executable. I haven't yet got it working
otherwise. I have the check for KDE4_BUILD_TESTS already, but haven't
tried with the test inside that block.
Off to do that now.
Good timing.
Allan
More information about the KMyMoney-devel
mailing list