← Back to team overview

elementary-dev-community team mailing list archive

Re: about TDD (Test Driven Development)



Are weseriously having another thread on TDD? ~alourie said in this thread
and very well:

>I believe that this has been discussed quite thoroughly already. For now,
TDD as a development philosophy is not really appropriate for the eOS
development. That is not a direct result of tools missing for unittesting,
but again, a development process decision.

There's not many of us (developers), we barely have time to fix bugs and
implent new features, let alone learning TDD and implementing tests all
over the place. Plus, you might be forgetting most of us are volunteers and
amateur programmers. Most of the elementary OS applications were written by
people with no degrees or experience in "professional companies", we're not
really used to TDD and we're busy studying French and Biology for school.

If you want to implement some testing on elementary applications, go ahead
and make a branch that implements tests and we'll consider it, all this
talk is useless, especially when it's happened at least 2 times already on
this very Mailing List.

Please make your energy useful in more useful ways,
~David "Munchor" Gomes

On Tue, Sep 3, 2013 at 12:40 PM, Daniele S. <oppifjellet@xxxxxxxxx> wrote:

> I read some threads focusing on TDD, so I wanted to create one where we
> can continue that conversation without being offtopic.
> I'd say my two cent about TDD and elementary os development.
> In my opinion our current environment is obstile to TDD for serveral
> reason:
> 1. Vala doesn't support TDD out of the box (  other languages do:
> http://cobra-language.com/ )
> 2. GLib.Test is a unit test facility that is available to Vala
> applications, however it's not as advanced as CppUnit, NUnit and equivalent
> 3. TDD is great for libraries and backends, not so much for GUI
> applications and Database driven applications.
> 4. TDD needs lots of fakes and mocks to be written, and that could be very
> time expensive ( and tedious sometimes )
> Some references to Unit testing on vala apps:
> http://valadoc.org/#!api=glib-2.0/GLib.Test
> http://esite.ch/2012/06/26/writing-tests-for-vala/
> feel free to comment
> BR,
> Daniele "OpenNingia" Simonetti
> --
> Mailing list: https://launchpad.net/~elementary-dev-community
> Post to     : elementary-dev-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~elementary-dev-community
> More help   : https://help.launchpad.net/ListHelp

Follow ups