From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 68D92138247 for ; Sat, 18 Jan 2014 01:53:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C041E0A93; Sat, 18 Jan 2014 01:53:53 +0000 (UTC) Received: from mail.plaimi.net (107.4.189.109.customer.cdi.no [109.189.4.107]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 049DFE0A7E for ; Sat, 18 Jan 2014 01:53:52 +0000 (UTC) Received: by mail.plaimi.net (Postfix) with ESMTPSA id CE7AE400D9 for ; Sat, 18 Jan 2014 02:53:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plaimi.net; s=leet; t=1390010030; bh=jVAJeAHo3yHaABQWm8KR3pvuA0k2VQNeUGXDX4z9xdw=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=EoGN9W9CdNcvW6k5CQXB8+3VdZqy0VZh+txCGmok/RDuwHKBBAuzM5sFX6zsbkXrd xamV8xwLO5vuWZOYEaoYKkpO6OWg34OW1lvanK/HhItQDiTWwTHQip6LKb3SqSb0m1 vr3cTQ5YWymxORYcMeH62b8oa60S/FNaWQ5/wWsc= Message-ID: <52D9DEC0.5080705@plaimi.net> Date: Sat, 18 Jan 2014 02:54:08 +0100 From: Alexander Berntsen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] When must we write tests, when is it optional? References: <20140118011056.28bde1ab@TOMWIJ-GENTOO> In-Reply-To: <20140118011056.28bde1ab@TOMWIJ-GENTOO> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 671bd381-dd82-4adf-a7c1-846afa2465ea X-Archives-Hash: 201681c71b1cfb35bdb05a28653467af -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 18/01/14 01:10, Tom Wijsman wrote: > Should writing tests be a requirement? When? Thank you for raising the issue. We need a clear policy on this. (And this policy should be obviously documented.) And in my opinion, tests are worthless unless we do some variant of TDD[0]. We should write tests before we write implementations. This makes you think more deeply about your design, and it forces you to actually *write* the tests. I have seen time and time again projects where tests are supposed to be written post-implementation. Usually, tests are written for the first month (that's an optimistic estimate), and then the implementation is so far ahead that tests are simply dropped altogether. [0] , for those of you who are unfamiliar with TDD. - -- Alexander alexander@plaimi.net http://plaimi.net/~alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlLZ3sAACgkQRtClrXBQc7WUUAEAni2RZNcbR8wyYKSJWAPXlgaR /CB3JDkzK3ZcOTn5sKcBAJ3tZ3jV+LLBg/Ls1f651gd6jECAfBvWiYAMFa8aUvSa =x2nL -----END PGP SIGNATURE-----