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 AAC4F10225 for ; Mon, 25 Nov 2013 19:48:17 +0000 (UTC) Received: (qmail 69233 invoked by uid 500); 25 Nov 2013 19:48:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 69192 invoked by uid 500); 25 Nov 2013 19:48:16 -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 69154 invoked by uid 99); 25 Nov 2013 19:48:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 19:48:16 +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 (nike.apache.org: domain of braden@google.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qa0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 19:48:11 +0000 Received: by mail-qa0-f49.google.com with SMTP id ii20so6732504qab.15 for ; Mon, 25 Nov 2013 11:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cBf/0jZ2L+Y8x2VJaxi8mCzw2Je5B8YO1KTGWE8fE0A=; b=gSFlQ8XStR6f3y0pG3AMcbo8l95DPuAomomD7cGyoy30pVik4g27KQmu6XxXo+TPXi sKW0g6eFFVwcbnksnVWvi87+PdhEOxBbIqH51EpDaOVwbc/QUHC9A7EAcnb3HRGRobjN 0wr7mIsJPVVTaoFfvycNLWeheyDucKOK3yOPSdWBHXDpE1nCwXF8avnK4Zs35JNXUzH8 s5VH7RP8E6RX1KlLAfWnD5FTyApYNjmxIQ4ZPBM+mxrHWTXQVwf5zBiyJDPnMRzkTFqC /XTX6HQMyieuBb9fIZysVxuH2RAUmL7w6/0+LP2i0faLT6/bgYXYHO1KF1LS8bXkHuz5 1OZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=cBf/0jZ2L+Y8x2VJaxi8mCzw2Je5B8YO1KTGWE8fE0A=; b=Cn3+TIrXMho4vy1sVzVz3FxIB6/rKS9bZL/TSC9hIbsizlKRzwa62oYt62Go72JsEC /0dqFB35OMu78Tu4RSUas/QA5dMbB6BSnbXcRUIc2Ajx0U/lV1hW1J07g7/g3mWYqdEA Kf4BvUgU43SHDVPcoWQSrIP/PRtLjyLsrkw9ZL9/ICMBmR4q1imlPxE37BDtmgl73eDZ GmA/G2Jt6IhEAGr7CiQr/MBXjb0eWtkC9q5dXqv/OxvpTMRVPvmoyIwJ6o+lTUfSDcKZ Vz9CDCHXH+tmcw3LrY6oLd7Ys8lTy0w+Z90DmhG3z9JiCHJL7NeYg/Ck++C9NGM4yDCF 6/9g== X-Gm-Message-State: ALoCoQn4p6mOaJ1VG2ONVxmqBD908qXZgnILcZ4I/BNkdONu2o7Ml/RQU4KltPaApPrP5awwN8dHWv3UQV4F6eVi6wEVvnguYjiQoKIsEGk060g2jQ9mOBdY58YNg85BOcCdoJNYloYzhDcU7h3oeyU5HWYdqbIj51KKMJuigssAQ1U0hSfqB3YQU+8h0y3tP1SNkDJorz7ZUU13w5eSGc0EQjz3JXs7pg== MIME-Version: 1.0 X-Received: by 10.49.131.5 with SMTP id oi5mr8002500qeb.38.1385408870235; Mon, 25 Nov 2013 11:47:50 -0800 (PST) Received: by 10.140.25.200 with HTTP; Mon, 25 Nov 2013 11:47:50 -0800 (PST) In-Reply-To: References: Date: Mon, 25 Nov 2013 14:47:50 -0500 Message-ID: Subject: Re: Refactoring the CLI tests From: Braden Shepherdson To: Mark Koudritsky Cc: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=047d7bdc06289450d904ec05a395 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc06289450d904ec05a395 Content-Type: text/plain; charset=ISO-8859-1 I think they're ready to go, yeah. Remember not to rebase the branch, since it's shared; just merge. Braden On Mon, Nov 25, 2013 at 2:15 PM, Mark Koudritsky wrote: > Would it be ok to merge the e2e tests to master now? > I did a change last week and a test > for it will be much better and easier in the e2e tests (got it ready > locally). So I'm starting to depend on the e2e tests. > > > On Thu, Nov 14, 2013 at 2:02 PM, Jonathan Bond-Caron < > jbondc@gdesolutions.com> wrote: > >> On Thu Nov 7 11:40 AM, Braden Shepherdson wrote: >> > The CLI tests are bad. I propose making them better. >> > >> > I propose letting the tests actually run filesystem and related calls, >> instead of >> > always mocking them out. In the simplest form, that means running them >> on the >> > real filesystem. If that's too slow, we can investigate other >> alternatives, like using >> > a ramdisk, or using that emulated fs that runs everything in RAM inside >> Node. >> > >> >> Big +1, the cli tests are failing on windows: >> https://issues.apache.org/jira/browse/CB-5330 >> >> Wouldn't be caught if it was mock tests. >> >> For the emulated 'fs', it could be a proxy pattern to a file system on >> RAM: >> >> e.g. >> testfs.setRoot('Z:\cordova-test'); >> testfs.init(); >> >> // init() would remap every fs function >> var fs = require('fs'), map = {'mkdir': fs.mkdirSync}; >> >> fs.mkdirSync = function (path, mode) { >> return map.mkdir(testfs.getPath(path), mode); >> }; >> >> // using the default fs functions during tests is remapped to a virtual >> root path >> fs.mkdirSync("C:\somewhere\cordova\foo"); // chmod >> 'Z:\cordova-test\C\somewhere\cordova\foo ' >> fs.mkdirSync("/somewhere/cordova/foo"); // chmod >> '/mounted/tmpfs/somewhere/cordov/foo ' >> >> Tmpfs is great on unix, for Windows, I use: >> http://www.softperfect.com/products/ramdisk/ >> >> >> > --047d7bdc06289450d904ec05a395--