From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] CONTRIBUTE - writing tests for understanding internals Date: Thu, 12 Nov 2015 22:55:24 +0200 Message-ID: <83tworgcoz.fsf@gnu.org> References: <87twotqxme.fsf@cumego.com> <83a8qlky1c.fsf@gnu.org> <874mgtgess.fsf@cumego.com> <834mgslf34.fsf@gnu.org> <56443CDF.8030802@online.de> <8337wbjisw.fsf@gnu.org> <86h9krc7e0.fsf@stephe-leake.org> <5644F951.6010700@online.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1447361763 11532 80.91.229.3 (12 Nov 2015 20:56:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2015 20:56:03 +0000 (UTC) Cc: stephen_leake@stephe-leake.org, emacs-devel@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 12 21:55:49 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZwyuJ-0006Sb-Iv for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 21:55:47 +0100 Original-Received: from localhost ([::1]:49734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwyuI-0007N9-Sd for ged-emacs-devel@m.gmane.org; Thu, 12 Nov 2015 15:55:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwyuF-0007Mo-Fl for emacs-devel@gnu.org; Thu, 12 Nov 2015 15:55:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwyuC-00020J-2m for emacs-devel@gnu.org; Thu, 12 Nov 2015 15:55:43 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:56413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwyuB-0001zx-Iv for emacs-devel@gnu.org; Thu, 12 Nov 2015 15:55:39 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NXP00F00YZ8V000@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 12 Nov 2015 22:55:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NXP00FFGZGPI9A0@a-mtaout20.012.net.il>; Thu, 12 Nov 2015 22:55:38 +0200 (IST) In-reply-to: <5644F951.6010700@online.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194285 Archived-At: > Date: Thu, 12 Nov 2015 21:40:49 +0100 > From: Andreas R=C3=B6hler > CC: Eli Zaretskii , emacs-devel@gnu.org >=20 > Well, there is still another thing with TDD: it's irrational by its= =20 > definition. Tests drive nothing In TDD, they teach you to write a test for a spec that isn't implemented yet. The test fails, of course (which is a Good Thing: now you know that your test indeed will catch a non-compliant implementation), and then you implement the spec to see that it now succeeds. If you work that way, tests _do_ drive the development.