[Kmymoney-devel] CSV Importer Plugin
Cristian Oneţ
onet.cristian at gmail.com
Tue Feb 23 12:19:28 CET 2010
On Tue, Feb 23, 2010 at 1:14 PM, aga <aganderson at ukonline.co.uk> wrote:
> On Monday 22 Feb 2010 10:40:59 Alvaro Soliverez wrote:
>> On Mon, Feb 22, 2010 at 7:37 AM, aga <aganderson at ukonline.co.uk> wrote:
>> > On Monday 22 Feb 2010 07:45:02 Thomas Baumgart wrote:
>> >> On Monday 22 February 2010 00:53:46 aga wrote:
>> >> > On Sunday 21 Feb 2010 23:02:15 Alvaro Soliverez wrote:
>> >>
>> >> [...]
>> >>
>> >> > > Congratz!
>> >> > > And yes, that's supposed to happen.
>> >> > > It's the raison d'etre of the unit tests.
>> >> > > First, to make sure you don't screw up when you first develop a
>> >> > > feature, and then to make sure you don't screw up when you change
>> >> > > something else. :D
>> >> >
>> >> > Yes, I knew that really! But, I certainly didn't expect it to happen
>> >> > first go.
>> >>
>> >> I once read in an e-mail sent out to me:
>> >>
>> >> "BTW, just the planning of the test cases helped me to improve the code
>> >> a lot. -- Alvaro Soliverez"
>> >
>> > I've been doing a bit of reading up, and yes, I can see that. Already,
>> > I've had to do a bit of redesign to allow testing. Plus, I'm going to
>> > have to move some error messages for the same reason.
>> >
>> > Just thinking ahead slightly, so far I've been working on a free-standing
>> > version so as to get a simple executable and not mess things up in the
>> > process. What I'm unclear on is integrating back into KMM.
>> >
>> > Is it something like 'make test' and then run as normal, or what?
>>
>> To run the tests, you have to enable the tests in cmake or ccmake.
>> Then, you make and make install, as usual, and finally you run make test
>
> I've got my own unit tests working and am moving back to KMM.
>
> Sorry about this, but
> aga at eve2:~/bin/kmymoney-3.96.0/build> make test
> Running tests...
> Start processing tests
> Test project /home/aga/bin/kmymoney-3.96.0/build
> No tests were found!!!
>
> I've googled and nabbled but haven't found how to *enable* the tests in KMM,
> although there was a mention of it in a CMakeLists.txt.
Run ccmake path_to_source look for KDE4_BUILD_TESTS and set it to ON
or just run cmake with -D option to define the same value.
Regards,
Cristian
More information about the KMyMoney-devel
mailing list