On Mon, Mar 29, 2010 at 5:13 PM, Paweł Blokus <[email protected]> wrote:
>> The project's first steps, however, should focus on simply
>> constructing a solid unit testing framework and integrating that into
>> our build process.  I would *strongly* recommend using an existing
>> open source unit testing framework such as GTest.
>
> I was thinking whether I could do this step now and provide some unit
> tests as my low-hanging-fruit tasks.

Absolutely! That would be very good.

> However, I'm not sure what I would need to do in order to integrate
> the unit testing framework with the building process. Some points that
> come to my mind are:
>
> 1. Checking the presence of the unit testing library while running configure

yep, and monty taylor can help you with these kind of things.

> 2. adding all the new files into the make procedure

kind of.  you would have an include.am file in a unittest/ directory
(or similar)

> 3. adding a new build target like 'make unittest' which would run the tests

Yep, in the main root directory's Makefile.am.  Again, monty may have
some ideas on how best to structure changes to the configure and
makefiles, though.  I will defer to his judgment here.

> I have the feeling that I'm totally missing something and it might
> turn out to take a lot more work than I would expect. Anyway I would
> appreciate any feedback :)

Nope, shouldn't actually be too difficult to get a simple framework up
and running.  You can also check out how projects like Google
Protobuffers do their unit testing.

Cheers!

jay

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to