Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 039EA107DC for ; Wed, 13 Nov 2013 03:58:12 +0000 (UTC) Received: (qmail 78552 invoked by uid 500); 13 Nov 2013 03:58:11 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 78142 invoked by uid 500); 13 Nov 2013 03:58:09 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 78133 invoked by uid 99); 13 Nov 2013 03:58:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Nov 2013 03:58:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.160.42 as permitted sender) Received: from [209.85.160.42] (HELO mail-pb0-f42.google.com) (209.85.160.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Nov 2013 03:58:04 +0000 Received: by mail-pb0-f42.google.com with SMTP id uo5so3699904pbc.29 for ; Tue, 12 Nov 2013 19:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=0EM6O6FG1/V7h2Wi8Q5exrHi3Hq2AA+fnFGhaidV8xQ=; b=bQOKttarmAJZymuTUqvTs2IkdyVdiUCYLYgFLbdC1Xxr/F21pQ2q0If5xnYYwQ1PTz LcDdtfRIIEwbfcd+WeZboSuTVGl/ZTU+gtdlWoY7Tpuxtwuy+9lHmV1arPfLlEYNHcoZ rSpD7M83pGTNa7+Bv5IZHlmfMWrMfhfkVy6jWO3YMKkStPxS2udmmxpQrrcVB1CZO6MI OGHN38KzgH6qO9P+8NyB9RWl8TfPBXZuJRoUZcaXZN2CUmI+5BFBc2/jI6xEbk3CVD1h qBqUs999tlULKxQIWTJ7hBtDgg+P+UL+4Rv75vtgrV7swFlhCMOU2iRpk6fKr/Lq+yfu bhHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=0EM6O6FG1/V7h2Wi8Q5exrHi3Hq2AA+fnFGhaidV8xQ=; b=j5tOEK/MaP7+Ckq4bgXLYaAsiTnPyRlctOJ7Lq1Lc8tyHEqEInoNRrNSodmLslVPxl /10MrJIRoTcX1sqVQhkL1gDL4GcovKpCqOOzpfW4hnpZ5LNhld/+AEvK1iUbA3Q0ud0R Nvxo7efyej6nFDPZS4fSX6e0mJbMWY5EvzP1k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=0EM6O6FG1/V7h2Wi8Q5exrHi3Hq2AA+fnFGhaidV8xQ=; b=X6J75v44su0vVRIOedXA24O7PTM6VRYA80qMWE9P/9/VACKoPI/qVBX6ehweiT+WW5 3sVnpYJq5DYfy3BRI6GF6JGbfV/RbcmlnGSloes5oB+cGpRYGSwdh33isLgQm+woU9BN nUbdNccJEcdzc2I6Z1oduJAwEpZrQWhwASA0Ns9kjfhtih8d6p2jGQ+zVOEFcp6hLGWx 2XH0iNXKzVj4+G6n5melAJuC2rZ7fXxKBD5d0x1SPQC2GR2HFAnMdJE32Vyri9L1CjwU eJl8NU0YrsSoqCxB82xj3PDaNHKC2cRRcFB5J7WM7hralsmBnTNksyNUxowEESWi9aaU hNIQ== X-Gm-Message-State: ALoCoQk2ZeTNVK6jrbpF60mYwOz2LxRwpgbGIVkokkb3/yXJvs81r3rDqHDmiogj/gQvMW/09c0TjW1BBjrgegwBqBCMylzsKnndl8hCSp3md/wl2hsU3eFDyOnSbEdOYBR8Yylyclt5CPNUEsI1jsO/4jb/iS6XUEvPMiALfHriVC431M71QTVY6ksgNtbUIH+nqMjIGLRidvxNRZTdcX7+e0Z27ljKYQ== X-Received: by 10.68.254.132 with SMTP id ai4mr39143654pbd.51.1384315063117; Tue, 12 Nov 2013 19:57:43 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.68.136.35 with HTTP; Tue, 12 Nov 2013 19:57:23 -0800 (PST) In-Reply-To: References: <299C48FD-159B-4A4F-9877-F2AF6105714C@gmail.com> From: Andrew Grieve Date: Tue, 12 Nov 2013 22:57:23 -0500 X-Google-Sender-Auth: 3P5BxlaDtLkK_KjyPtCJamXMwiw Message-ID: Subject: Re: Refactoring the CLI tests To: dev Content-Type: multipart/alternative; boundary=047d7b2e0a11983d7a04eb06f7ee X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e0a11983d7a04eb06f7ee Content-Type: text/plain; charset=ISO-8859-1 Great! If they pass - why not put them on master? On Tue, Nov 12, 2013 at 5:52 PM, Braden Shepherdson wrote: > Following up here with the note that there's a public branch called > e2e-tests with working tests for create and platform commands. These tests > are touching the real filesystem using only slightly hacked-up fixtures. > > A couple of things we learned: the res/ directory in the helloworld > template is 3MB, the rest of the project including Android source and > everything is about 280K. So drop the res/ directory from the fixtures, now > it's much faster. > > We're having to inject into our freshly created project a config.json > pointing at the fixtures instead of letting it do the real lazy-load, but > that's working pretty well. They're fast, too, faster than some of the > "unit" tests. Hopefully that trend will continue. > > Braden > > > On Tue, Nov 12, 2013 at 4:56 PM, Anis KADRI wrote: > > > Wow... > > > > I meant > > > > "replace them with real world assertions (that touch the FS)". :-) > > > > On Tue, Nov 12, 2013 at 1:55 PM, Anis KADRI > wrote: > > > On Tue, Nov 12, 2013 at 1:49 PM, Andrew Grieve > > wrote: > > >> Want to give a big +1 to deleting tests that are testing > implementation > > >> rather than results. Having such tests is a real drain on > productivity. > > > > > > I tend to agree with this statement. Maybe not delete but add/replace > > > them real world assertions to them (that touch the FS). In some cases > > > it makes sense to test the implementation to make sure that an action > > > goes through the proper flow. > > > --047d7b2e0a11983d7a04eb06f7ee--